* EOAccess/EODatabaseContext.m ([-dealloc], [-rollbackChanges])

([-_cleanUpAfterSave]): Guard against missing hash table.
	([-registerLockedObjectWithGlobalID:]): Reformat.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21653 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-08-17 21:11:40 +00:00
parent 38b0f58afd
commit 41b2d38380
2 changed files with 19 additions and 4 deletions

View file

@ -10,6 +10,10 @@
propagated yet.
* EOControl/EOPrivate.h (EOHashAddTable): New compatibility
function.
* EOAccess/EODatabaseContext.m ([-dealloc], [-rollbackChanges])
([-_cleanUpAfterSave]): Guard against missing hash table.
([-registerLockedObjectWithGlobalID:]): Reformat.
2005-07-10 Matt Rice <ratmice@yahoo.com>

View file

@ -329,7 +329,9 @@ static Class _contextClass = Nil;
}
if (_lockedObjects)
NSResetHashTable(_lockedObjects);
{
NSResetHashTable(_lockedObjects);
}
DESTROY(_lock);
@ -3622,7 +3624,10 @@ Raises an exception is the adaptor is unable to perform the operations.
_flags.beganTransaction = NO;
NSResetHashTable(_lockedObjects);
if (_lockedObjects)
{
NSResetHashTable(_lockedObjects);
}
NSResetMapTable(_dbOperationsByGlobalID);
/* //TODO
@ -6458,7 +6463,10 @@ Raises an exception is the adaptor is unable to perform the operations.
EOFLOGObjectFnStart();
if (!_lockedObjects)
_lockedObjects = NSCreateHashTable(NSNonOwnedPointerHashCallBacks, _LOCK_BUFFER);
{
_lockedObjects
= NSCreateHashTable(NSNonOwnedPointerHashCallBacks, _LOCK_BUFFER);
}
NSHashInsert(_lockedObjects, globalID);
@ -6865,7 +6873,10 @@ Raises an exception is the adaptor is unable to perform the operations.
_flags.preparingForSave = NO;
//TODO HERE or in _commitTransaction ?
NSResetHashTable(_lockedObjects);
if (_lockedObjects)
{
NSResetHashTable(_lockedObjects);
}
EOFLOGObjectFnStop();
}