List:Internals« Previous MessageNext Message »
From:pekka Date:March 3 2005 12:46pm
Subject:bk commit into 4.1 tree (pekka:1.2067) BUG#8876
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of pekka. When pekka 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
  1.2067 05/03/03 12:45:49 pekka@stripped +1 -0
  ndb - bug#8876 third and final solution

  ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
    1.52 05/03/03 12:31:56 pekka@stripped +8 -0
    lqh to forward abort within ng

# 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:	pekka
# Host:	tuna.ndb.mysql.com
# Root:	/orca/space/pekka/ndb/version/my41

--- 1.51/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2005-03-03 11:28:07 +01:00
+++ 1.52/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2005-03-03 12:31:56 +01:00
@@ -5923,11 +5923,17 @@
   UintR TnoLoops = tcConnectptr.p->noOfNodes;
   
   apiConnectptr.p->counter++;
+  bool prevAlive = false;
   for (Uint32 Ti = 0; Ti < TnoLoops ; Ti++) {
     localHostptr.i = tcConnectptr.p->tcNodedata[Ti];
     ptrCheckGuard(localHostptr, chostFilesize, hostRecord);
     if (localHostptr.p->hostStatus == HS_ALIVE) {
       jam();
+      if (prevAlive) {
+        // if previous is alive, its LQH forwards abort to this node
+        jam();
+        continue;
+      }
       /* ************< */
       /*    ABORT    < */
       /* ************< */
@@ -5937,6 +5943,7 @@
       signal->theData[2] = apiConnectptr.p->transid[0];
       signal->theData[3] = apiConnectptr.p->transid[1];
       sendSignal(tblockref, GSN_ABORT, signal, 4, JBB);
+      prevAlive = true;
     } else {
       jam();
       signal->theData[0] = tcConnectptr.i;
@@ -5945,6 +5952,7 @@
       signal->theData[3] = localHostptr.i;
       signal->theData[4] = ZFALSE;
       sendSignal(cownref, GSN_ABORTED, signal, 5, JBB);
+      prevAlive = false;
     }//if
   }//for
   return 1;
Thread
bk commit into 4.1 tree (pekka:1.2067) BUG#8876pekka3 Mar