[mapguide-commits] r4817 - sandbox/adsk/2.2gp/Server/src/Common/Manager

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 29 17:05:18 EDT 2010


Author: brucedechant
Date: 2010-04-29 17:05:16 -0400 (Thu, 29 Apr 2010)
New Revision: 4817

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-04-29 20:58:25 UTC (rev 4816)
+++ sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp	2010-04-29 21:05:16 UTC (rev 4817)
@@ -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