MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:DonKehndon.kehn Date:November 14 2008 10:26pm
Subject:bzr commit into mysql-5.1 branch (DonKehndon.kehn:2753) Bug#33626
View as plain text  
#At file:///u02/devl/bzr-tree/6.3-patch3/ based on revid:don.kehn@stripped

 2753 Don Kehn	2008-11-14
      BUG #33626 - ndbcluster_print_error crash
modified:
  storage/ndb/src/ndbapi/NdbScanOperation.cpp

=== modified file 'storage/ndb/src/ndbapi/NdbScanOperation.cpp'
--- a/storage/ndb/src/ndbapi/NdbScanOperation.cpp	2008-11-08 21:22:57 +0000
+++ b/storage/ndb/src/ndbapi/NdbScanOperation.cpp	2008-11-14 22:26:16 +0000
@@ -95,7 +95,10 @@ int
 NdbScanOperation::init(const NdbTableImpl* tab, NdbTransaction* myConnection)
 {
   m_transConnection = myConnection;
-  //NdbConnection* aScanConnection = theNdb->startTransaction(myConnection);
+
+  if(NdbOperation::init(tab, NULL, false) != 0)
+    return -1;
+
   theNdb->theRemainingStartTransactions++; // will be checked in hupp...
   NdbTransaction* aScanConnection = theNdb->hupp(myConnection);
   if (!aScanConnection){
@@ -105,11 +108,8 @@ NdbScanOperation::init(const NdbTableImp
   }
 
   // NOTE! The hupped trans becomes the owner of the operation
-  if(NdbOperation::init(tab, aScanConnection, false) != 0){
-    theNdb->theRemainingStartTransactions--;
-    return -1;
-  }
-  
+  theNdbCon= aScanConnection;
+
   initInterpreter();
   
   theStatus = GetValue;

Thread
bzr commit into mysql-5.1 branch (DonKehndon.kehn:2753) Bug#33626DonKehndon.kehn14 Nov