List:Commits« Previous MessageNext Message »
From:jonas Date:July 3 2007 8:39am
Subject:bk commit into 5.0 tree (jonas:1.2313) BUG#29354
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-07-03 08:39:42+02:00, jonas@stripped +1 -0
  ndb - bug#29354 - Incorrect handling of replica REDO during SR (5.0)
    Not very clever fix for DIH incorrect REDO handling
    - Dont report GCP_SAVE_CONF until first LCP has been complete during NR

  ndb/src/kernel/blocks/dblqh/DblqhMain.cpp@stripped, 2007-07-03 08:39:40+02:00,
jonas@stripped +23 -4
    Not very clever fix for DIH incorrect REDO handling
      - Dont report GCP_SAVE_CONF until first LCP has been complete during NR

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/50-work

--- 1.104/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp	2007-07-03 08:39:45 +02:00
+++ 1.105/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp	2007-07-03 08:39:45 +02:00
@@ -11164,6 +11164,13 @@
     jam();
     sendEMPTY_LCP_CONF(signal, true);
   }
+
+  if (getNodeState().getNodeRestartInProgress())
+  {
+    jam();
+    ndbrequire(cstartRecReq == 2);
+    cstartRecReq = 3;
+  }
   return;
 }//Dblqh::sendCOMP_LCP_ROUND()
 
@@ -11729,15 +11736,27 @@
     return;
   }
   
-  ccurrentGcprec = 0;
-  gcpPtr.i = ccurrentGcprec;
-  ptrCheckGuard(gcpPtr, cgcprecFileSize, gcpRecord);
-  
   cnewestCompletedGci = gci;
   if (gci > cnewestGci) {
     jam();
     cnewestGci = gci;
   }//if
+
+  if(getNodeState().getNodeRestartInProgress() && cstartRecReq < 3)
+  {
+    GCPSaveRef * const saveRef = (GCPSaveRef*)&signal->theData[0];
+    saveRef->dihPtr = dihPtr;
+    saveRef->nodeId = getOwnNodeId();
+    saveRef->gci    = gci;
+    saveRef->errorCode = GCPSaveRef::NodeRestartInProgress;
+    sendSignal(dihBlockRef, GSN_GCP_SAVEREF, signal, 
+	       GCPSaveRef::SignalLength, JBB);
+    return;
+  }
+
+  ccurrentGcprec = 0;
+  gcpPtr.i = ccurrentGcprec;
+  ptrCheckGuard(gcpPtr, cgcprecFileSize, gcpRecord);
   
   gcpPtr.p->gcpBlockref = dihBlockRef;
   gcpPtr.p->gcpUserptr = dihPtr;
Thread
bk commit into 5.0 tree (jonas:1.2313) BUG#29354jonas3 Jul