MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:jonas Date:December 8 2006 4:21pm
Subject:bk commit into 5.1 tree (jonas:1.2351) BUG#24917
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 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, 2006-12-08 17:21:29+01:00, jonas@stripped +1 -0
  ndb - bug#24917
    

  storage/ndb/src/kernel/blocks/lgman.cpp@stripped, 2006-12-08 17:21:27+01:00, jonas@stripped +4 -2
    Hande LCP= 0 specially

# 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/51-work

--- 1.21/storage/ndb/src/kernel/blocks/lgman.cpp	2006-12-08 17:21:34 +01:00
+++ 1.22/storage/ndb/src/kernel/blocks/lgman.cpp	2006-12-08 17:21:34 +01:00
@@ -2063,6 +2063,7 @@
   if(ptr.i != RNIL)
   {
     infoEvent("Applying undo to LCP: %d", m_latest_lcp);
+    ndbout_c("Applying undo to LCP: %d", m_latest_lcp);
     find_log_head(signal, ptr);
     return;
   }
@@ -2682,13 +2683,14 @@
     case File_formats::Undofile::UNDO_LCP_FIRST:
     {
       Uint32 lcp = * (ptr - len + 1);
-      if(lcp > m_latest_lcp)
+      if(m_latest_lcp && lcp > m_latest_lcp)
       {
 	// Just ignore
 	break;
       }
 
-      if(lcp < m_latest_lcp || 
+      if(m_latest_lcp == 0 || 
+	 lcp < m_latest_lcp || 
 	 (lcp == m_latest_lcp && 
 	  mask == File_formats::Undofile::UNDO_LCP_FIRST))
       {
Thread
bk commit into 5.1 tree (jonas:1.2351) BUG#24917jonas8 Dec