* GSWeb.framework/GSWSessionServerStore.m/.h:

o changes for checkin/checkout code rewriting


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@17025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2003-06-25 15:35:22 +00:00
parent d406f31b59
commit 20fbd69830

View file

@ -113,21 +113,17 @@ RCS_ID("$Id$")
{
//OK
GSWSession* session=nil;
BOOL isSessionIDCheckedOut=NO;
LOGObjectFnStart();
NSDebugMLLog(@"sessions",@"aSessionID=%@",aSessionID);
NSDebugMLLog(@"sessions",@"_usedIDs=%@",_usedIDs);
isSessionIDCheckedOut=[self _isSessionIDCheckedOut:aSessionID];
if (!isSessionIDCheckedOut)
{
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
session=[_sessions objectForKey:aSessionID];
NSDebugMLLog(@"sessions",@"session=%@",session);
[session retain]; //to avoid discarding it now
[session autorelease]; //discard it 'later'
[_sessions removeObjectForKey:aSessionID];
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
};
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
session=[_sessions objectForKey:aSessionID];
NSDebugMLLog(@"sessions",@"session=%@",session);
RETAIN(session); //to avoid discarding it now
[_sessions removeObjectForKey:aSessionID];
NSDebugMLLog(@"sessions",@"_sessions=%@",_sessions);
AUTORELEASE(session); //discard it 'later'
LOGObjectFnStop();
return session;
};