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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Apr 30 16:59:58 EDT 2010


Author: brucedechant
Date: 2010-04-30 16:59:58 -0400 (Fri, 30 Apr 2010)
New Revision: 4819

Modified:
   sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp
Log:
Revert change due to pending build.

This fix will have to wait.

Modified: sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp
===================================================================
--- sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp	2010-04-29 21:06:06 UTC (rev 4818)
+++ sandbox/adsk/2.2gp/Server/src/Common/Manager/Connection.cpp	2010-04-30 20:59:58 UTC (rev 4819)
@@ -97,12 +97,30 @@
             {
                 g_threadLocalConnection = 0;
             }
+            else
+            {
+                ACE_OS::thr_setspecific(g_threadLocalConnection, NULL);
+            }
         }
     }
 
     if (0 != g_threadLocalConnection)
     {
-        ACE_OS::thr_setspecific(g_threadLocalConnection, connection);
+        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;
+        }
     }
 }
 



More information about the mapguide-commits mailing list