Commit 74e96ba0 authored by jonas@perch.ndb.mysql.com's avatar jonas@perch.ndb.mysql.com

Merge perch.ndb.mysql.com:/home/jonas/src/51-work

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents f546ae9f 3358f4f1
...@@ -2063,6 +2063,7 @@ Lgman::execSTART_RECREQ(Signal* signal) ...@@ -2063,6 +2063,7 @@ Lgman::execSTART_RECREQ(Signal* signal)
if(ptr.i != RNIL) if(ptr.i != RNIL)
{ {
infoEvent("Applying undo to LCP: %d", m_latest_lcp); infoEvent("Applying undo to LCP: %d", m_latest_lcp);
ndbout_c("Applying undo to LCP: %d", m_latest_lcp);
find_log_head(signal, ptr); find_log_head(signal, ptr);
return; return;
} }
...@@ -2682,13 +2683,14 @@ Lgman::execute_undo_record(Signal* signal) ...@@ -2682,13 +2683,14 @@ Lgman::execute_undo_record(Signal* signal)
case File_formats::Undofile::UNDO_LCP_FIRST: case File_formats::Undofile::UNDO_LCP_FIRST:
{ {
Uint32 lcp = * (ptr - len + 1); Uint32 lcp = * (ptr - len + 1);
if(lcp > m_latest_lcp) if(m_latest_lcp && lcp > m_latest_lcp)
{ {
// Just ignore // Just ignore
break; break;
} }
if(lcp < m_latest_lcp || if(m_latest_lcp == 0 ||
lcp < m_latest_lcp ||
(lcp == m_latest_lcp && (lcp == m_latest_lcp &&
mask == File_formats::Undofile::UNDO_LCP_FIRST)) mask == File_formats::Undofile::UNDO_LCP_FIRST))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment