List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:November 3 2010 8:34am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (jonas:3917) Bug#57946
View as plain text  
#At file:///home/jonas/src/telco-7.0/ based on revid:jonas@stripped

 3917 Jonas Oreland	2010-11-03
      ndb - bug#57946 - fix weird race-condition with CLOSE_COMREQ/API_REQREQ

    modified:
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
=== modified file 'storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp'
--- a/storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp	2010-08-11 12:11:47 +0000
+++ b/storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp	2010-11-03 08:34:16 +0000
@@ -3236,6 +3236,16 @@ void Qmgr::execAPI_REGREQ(Signal* signal
   NodeRecPtr apiNodePtr;
   apiNodePtr.i = refToNode(ref);
   ptrCheckGuard(apiNodePtr, MAX_NODES, nodeRec);
+
+  if (apiNodePtr.p->phase == ZFAIL_CLOSING)
+  {
+    jam();
+    /**
+     * This node is pending CLOSE_COM_CONF
+     *   ignore API_REGREQ
+     */
+    return;
+  }
   
 #if 0
   ndbout_c("Qmgr::execAPI_REGREQ: Recd API_REGREQ (NodeId=%d)", apiNodePtr.i);


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20101103083416-8bobvmv9cujj4rb7.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (jonas:3917) Bug#57946Jonas Oreland3 Nov