[mapguide-commits] r4816 - sandbox/adsk/2.1/Server/src/Common/Manager

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 29 16:58:25 EDT 2010


Author: brucedechant
Date: 2010-04-29 16:58:25 -0400 (Thu, 29 Apr 2010)
New Revision: 4816

Modified:
   sandbox/adsk/2.1/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.1/Server/src/Common/Manager/Connection.cpp
===================================================================
--- sandbox/adsk/2.1/Server/src/Common/Manager/Connection.cpp	2010-04-28 07:56:53 UTC (rev 4815)
+++ sandbox/adsk/2.1/Server/src/Common/Manager/Connection.cpp	2010-04-29 20:58:25 UTC (rev 4816)
@@ -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