bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix GDL2, EODatabaseContext (-objectsWithFetchSpecification:editingC


From: Fred Kiefer
Subject: Re: Fix GDL2, EODatabaseContext (-objectsWithFetchSpecification:editingContext:)
Date: Sun, 12 Sep 2010 20:03:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6

I just committed all four of your patches.

Thank you
Fred

Am 05.09.2010 10:23, schrieb Georg Fleischmann:
> Hi,
> 
> I am working on getting my applications running with the latest SVN version 
> of GDL2. It seems that GDL2 is always locking everything now (that was 
> different in 0.12.0).
> The first thing that happens in [EODatabaseContext 
> -objectsWithFetchSpecification:editingContext:] when fetching an object is 
> locking:
> 
>   if (_flags.beganTransaction == NO)
>   {
>     [_adaptorContext beginTransaction];
>     
>     _flags.beganTransaction = YES;
>   }
> 
> To fix this, I added a check for pessimistic locking (see attached patch).
> That seems to fix my problems.
> 
> 
> * EOAccess/EODatabaseContext ([EODatabaseContext 
> -objectsWithFetchSpecification:editingContext:]):
> call beginTransaction only for pessimistic locking
> 
> 
> Best wishes,
> Georg Fleischmann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]