List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:June 13 2011 12:18pm
Subject:bzr commit into mysql-5.1-telco-6.3 branch (jonas:3441) Bug#61500
View as plain text  
#At file:///home/jonas/src/telco-6.3/ based on revid:jonas@stripped

 3441 Jonas Oreland	2011-06-13
      ndb - bug#61500 - if lastMbytePageNo > invalidatePageNo then move invalidatePageNo forward to lastMbytePageNo fi

    modified:
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
=== modified file 'storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp'
--- a/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp	2011-03-29 06:44:15 +0000
+++ b/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp	2011-06-13 12:18:25 +0000
@@ -17202,6 +17202,31 @@ stepNext_2:
     {
       jam();
       logPartPtr.p->invalidatePageNo = logPartPtr.p->headPageNo;
+
+      if (! ((cstartType == NodeState::ST_INITIAL_START) ||
+             (cstartType == NodeState::ST_INITIAL_NODE_RESTART)))
+      {
+        jam();
+        if (logFilePtr.i == logPartPtr.p->lastLogfile)
+        {
+          jam();
+          Uint32 lastMbytePageNo =
+            logPartPtr.p->lastMbyte << ZTWOLOG_NO_PAGES_IN_MBYTE;
+          if (logPartPtr.p->invalidatePageNo < lastMbytePageNo)
+          {
+            jam();
+            if (DEBUG_REDO)
+            {
+              ndbout_c("readFileInInvalidate part: %u step: %u moving invalidatePageNo from %u to %u (lastMbyte)",
+                       logPartPtr.i,
+                       stepNext,
+                       logPartPtr.p->invalidatePageNo,
+                       lastMbytePageNo);
+            }
+            logPartPtr.p->invalidatePageNo = lastMbytePageNo;
+          }
+        }
+      }
       readFileInInvalidate(signal, 1);
       return;
     }


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20110613121825-ddw6mi5q1s4934jc.bundle
Thread
bzr commit into mysql-5.1-telco-6.3 branch (jonas:3441) Bug#61500Jonas Oreland13 Jun