List:Commits« Previous MessageNext Message »
From:jonas Date:June 11 2008 9:28am
Subject:bzr commit into mysql-5.1-telco-6.2 branch (jonas:2621) Bug#37334
View as plain text  
#At file:///home/jonas/src/telco-6.2/

 2621 jonas@stripped	2008-06-11
      ndb - bug#37334
        Fix race condition with sequence do_connect,do_disconnect
        on transporter
modified:
  storage/ndb/src/common/transporter/TransporterRegistry.cpp

=== modified file 'storage/ndb/src/common/transporter/TransporterRegistry.cpp'
--- a/storage/ndb/src/common/transporter/TransporterRegistry.cpp	2008-04-25 09:17:15 +0000
+++ b/storage/ndb/src/common/transporter/TransporterRegistry.cpp	2008-06-11 09:28:40 +0000
@@ -1165,6 +1165,17 @@ TransporterRegistry::start_clients_threa
 	if(t->isConnected())
 	  t->doDisconnect();
 	break;
+      case DISCONNECTED:
+      {
+        if (t->isConnected())
+        {
+          g_eventLogger->warning("Found connection to %u in state DISCONNECTED "
+                                 " while being connected, disconnecting!",
+                                 t->getRemoteNodeId());
+          t->doDisconnect();
+        }
+        break;
+      }
       default:
 	break;
       }

Thread
bzr commit into mysql-5.1-telco-6.2 branch (jonas:2621) Bug#37334jonas11 Jun