* 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:
mguesdon 2003-06-25 15:35:22 +00:00
parent d607fa669c
commit b113dccb74

View file

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