Commit 11fef784 authored by unknown's avatar unknown

Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-4.1

into  c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/mysql-5.0


ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
  Auto merged
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  Auto merged
parents 057855a3 6c7f692d
...@@ -89,6 +89,17 @@ ...@@ -89,6 +89,17 @@
#define ZCURR_PAGE_INDEX 8 #define ZCURR_PAGE_INDEX 8
#define ZLAST_LOG_PREP_REF 10 #define ZLAST_LOG_PREP_REF 10
#define ZPOS_DIRTY 11 #define ZPOS_DIRTY 11
/* A number of debug items written in the page header of all log files */
#define ZPOS_LOG_TIMER 12
#define ZPOS_PAGE_I 13
#define ZPOS_PLACE_WRITTEN_FROM 14
#define ZPOS_PAGE_NO 15
#define ZPOS_PAGE_FILE_NO 16
#define ZPOS_WORD_WRITTEN 17
#define ZPOS_IN_WRITING 18
#define ZPOS_PREV_PAGE_NO 19
#define ZPOS_IN_FREE_LIST 20
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/* CONSTANTS FOR THE VARIOUS REPLICA AND NODE TYPES. */ /* CONSTANTS FOR THE VARIOUS REPLICA AND NODE TYPES. */
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
...@@ -2281,7 +2292,7 @@ private: ...@@ -2281,7 +2292,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);
...@@ -2297,7 +2308,8 @@ private: ...@@ -2297,7 +2308,8 @@ private:
void writeFileDescriptor(Signal* signal); void writeFileDescriptor(Signal* signal);
void writeFileHeaderOpen(Signal* signal, Uint32 type); void writeFileHeaderOpen(Signal* signal, Uint32 type);
void writeInitMbyte(Signal* signal); void writeInitMbyte(Signal* signal);
void writeSinglePage(Signal* signal, Uint32 pageNo, Uint32 wordWritten); void writeSinglePage(Signal* signal, Uint32 pageNo,
Uint32 wordWritten, Uint32 place);
void buildLinkedLogPageList(Signal* signal); void buildLinkedLogPageList(Signal* signal);
void changeMbyte(Signal* signal); void changeMbyte(Signal* signal);
Uint32 checkIfExecLog(Signal* signal); Uint32 checkIfExecLog(Signal* signal);
...@@ -2306,7 +2318,7 @@ private: ...@@ -2306,7 +2318,7 @@ private:
void checkScanTcCompleted(Signal* signal); void checkScanTcCompleted(Signal* signal);
void checkSrCompleted(Signal* signal); void checkSrCompleted(Signal* signal);
void closeFile(Signal* signal, LogFileRecordPtr logFilePtr); void closeFile(Signal* signal, LogFileRecordPtr logFilePtr);
void completedLogPage(Signal* signal, Uint32 clpType); void completedLogPage(Signal* signal, Uint32 clpType, Uint32 place);
void deleteFragrec(Uint32 fragId); void deleteFragrec(Uint32 fragId);
void deleteTransidHash(Signal* signal); void deleteTransidHash(Signal* signal);
void findLogfile(Signal* signal, void findLogfile(Signal* signal,
...@@ -2404,7 +2416,9 @@ private: ...@@ -2404,7 +2416,9 @@ private:
void writeAbortLog(Signal* signal); void writeAbortLog(Signal* signal);
void writeCommitLog(Signal* signal, LogPartRecordPtr regLogPartPtr); void writeCommitLog(Signal* signal, LogPartRecordPtr regLogPartPtr);
void writeCompletedGciLog(Signal* signal); void writeCompletedGciLog(Signal* signal);
void writeDirty(Signal* signal); void writeDbgInfoPageHeader(LogPageRecordPtr logPagePtr, Uint32 place,
Uint32 pageNo, Uint32 wordWritten);
void writeDirty(Signal* signal, Uint32 place);
void writeKey(Signal* signal); void writeKey(Signal* signal);
void writeLogHeader(Signal* signal); void writeLogHeader(Signal* signal);
void writeLogWord(Signal* signal, Uint32 data); void writeLogWord(Signal* signal, Uint32 data);
......
This diff is collapsed.
...@@ -267,6 +267,15 @@ NdbOut& operator<<(NdbOut& no, const PageHeader& ph) { ...@@ -267,6 +267,15 @@ NdbOut& operator<<(NdbOut& no, const PageHeader& ph) {
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;
} }
......
...@@ -147,6 +147,17 @@ protected: ...@@ -147,6 +147,17 @@ protected:
Uint32 m_old_prepare_file_number; Uint32 m_old_prepare_file_number;
Uint32 m_old_prepare_page_reference; Uint32 m_old_prepare_page_reference;
Uint32 m_dirty_flag; Uint32 m_dirty_flag;
/* Debug info Start */
Uint32 m_log_timer;
Uint32 m_page_i_value;
Uint32 m_place_written_from;
Uint32 m_page_no;
Uint32 m_file_no;
Uint32 m_word_written;
Uint32 m_in_writing_flag;
Uint32 m_prev_page_no;
Uint32 m_in_free_list;
/* Debug info End */
}; };
//---------------------------------------------------------------- //----------------------------------------------------------------
......
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