[mapguide-commits] r4818 - trunk/MgDev/Server/src/Common/Manager

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


Author: brucedechant
Date: 2010-04-29 17:06:06 -0400 (Thu, 29 Apr 2010)
New Revision: 4818

Modified:
   trunk/MgDev/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: trunk/MgDev/Server/src/Common/Manager/Connection.cpp
===================================================================
--- trunk/MgDev/Server/src/Common/Manager/Connection.cpp	2010-04-29 21:05:16 UTC (rev 4817)
+++ trunk/MgDev/Server/src/Common/Manager/Connection.cpp	2010-04-29 21:06:06 UTC (rev 4818)
@@ -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