Commit d5028e2c authored by unknown's avatar unknown

Bug #12594: A few fixes


ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
  Fixed a bug and an issue with the added debug code for finding
  redo log write mistakes
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  Fixed a bug and an issue with the added debug code for finding
  redo log write mistakes
  Removed a number of unnecessary break's
ndb/src/kernel/blocks/dblqh/redoLogReader/records.cpp:
  Added printouts of new debug info in log page header
parent 14b92d30
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
#define ZPOS_PAGE_I 13 #define ZPOS_PAGE_I 13
#define ZPOS_PLACE_WRITTEN_FROM 14 #define ZPOS_PLACE_WRITTEN_FROM 14
#define ZPOS_PAGE_NO 15 #define ZPOS_PAGE_NO 15
#define ZPOS_FILE_NO 16 #define ZPOS_PAGE_FILE_NO 16
#define ZPOS_WORD_WRITTEN 17 #define ZPOS_WORD_WRITTEN 17
#define ZPOS_IN_WRITING 18 #define ZPOS_IN_WRITING 18
#define ZPOS_PREV_PAGE_NO 19 #define ZPOS_PREV_PAGE_NO 19
...@@ -2289,7 +2289,7 @@ private: ...@@ -2289,7 +2289,7 @@ private:
const LogPartRecordPtr &sltLogPartPtr); const LogPartRecordPtr &sltLogPartPtr);
void checkGcpCompleted(Signal* signal, Uint32 pageWritten, Uint32 wordWritten); void checkGcpCompleted(Signal* signal, Uint32 pageWritten, Uint32 wordWritten);
void initFsopenconf(Signal* signal); void initFsopenconf(Signal* signal);
void initFsrwconf(Signal* signal); void initFsrwconf(Signal* signal, bool write);
void initLfo(Signal* signal); void initLfo(Signal* signal);
void initLogfile(Signal* signal, Uint32 fileNo); void initLogfile(Signal* signal, Uint32 fileNo);
void initLogpage(Signal* signal); void initLogpage(Signal* signal);
......
This diff is collapsed.
...@@ -266,7 +266,16 @@ NdbOut& operator<<(NdbOut& no, const PageHeader& ph) { ...@@ -266,7 +266,16 @@ NdbOut& operator<<(NdbOut& no, const PageHeader& ph) {
printOut("Current page index:", ph.m_current_page_index); printOut("Current page index:", ph.m_current_page_index);
printOut("Oldest prepare op. file No.:", ph.m_old_prepare_file_number); printOut("Oldest prepare op. file No.:", ph.m_old_prepare_file_number);
printOut("Oldest prepare op. page ref.:", ph.m_old_prepare_page_reference); printOut("Oldest prepare op. page ref.:", ph.m_old_prepare_page_reference);
printOut("Dirty flag:", ph.m_dirty_flag); printOut("Dirty flag:", ph.m_dirty_flag);
printOut("Write Timer:", ph.m_log_timer);
printOut("Page i-val:", ph.m_page_i_value);
printOut("Place written:", ph.m_place_written_from);
printOut("Page No in File:", ph.m_page_no);
printOut("File No:", ph.m_file_no);
printOut("Word Written:", ph.m_word_written);
printOut("In Writing (should be 1)", ph.m_in_writing_flag);
printOut("Prev Page No (can be garbage)", ph.m_prev_page_no);
printOut("In Free List (should be 0):", ph.m_in_free_list);
no << endl; no << endl;
return no; return no;
} }
......
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