[mapguide-commits] r4957 -
sandbox/adsk/2.2gp/Server/src/Common/Manager
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Jun 17 13:45:13 EDT 2010
Author: brucedechant
Date: 2010-06-17 17:45:13 +0000 (Thu, 17 Jun 2010)
New Revision: 4957
Modified:
sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp
Log:
Fix for trac ticket 1110.
http://trac.osgeo.org/mapguide/ticket/1110
Notes:
- Change MgConnection so that a copy is not made as it is not needed.
- This also fixes the session log missing CLIENT and CLIENTIP information.
Modified: sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp
===================================================================
--- sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp 2010-06-17 17:36:15 UTC (rev 4956)
+++ sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp 2010-06-17 17:45:13 UTC (rev 4957)
@@ -97,30 +97,12 @@
{
g_threadLocalConnection = 0;
}
- else
- {
- ACE_OS::thr_setspecific(g_threadLocalConnection, NULL);
- }
}
}
if (0 != g_threadLocalConnection)
{
- MgConnection* oldInfo = NULL;
- ACE_OS::thr_getspecific(g_threadLocalConnection, (void**) &oldInfo);
-
- MgConnection* tempConnection = NULL;
- if(connection != NULL)
- {
- tempConnection = new MgConnection(*connection);
- }
-
- ACE_OS::thr_setspecific(g_threadLocalConnection, tempConnection);
-
- if (NULL != oldInfo)
- {
- delete oldInfo;
- }
+ ACE_OS::thr_setspecific(g_threadLocalConnection, connection);
}
}
More information about the mapguide-commits
mailing list