21 #include <ndb_types.h>
23 #define ZNEW_PREP_OP_TYPE 0
24 #define ZPREP_OP_TYPE 1
25 #define ZCOMMIT_TYPE 2
28 #define ZFRAG_SPLIT_TYPE 5
29 #define ZNEXT_LOG_RECORD_TYPE 6
30 #define ZNEXT_MBYTE_TYPE 7
31 #define ZCOMPLETED_GCI_TYPE 8
32 #define ZINVALID_COMMIT_TYPE 9
34 #define MAX_FILE_DESCRIPTORS 40
37 #define NO_PAGES_IN_MBYTE 32
39 #define COMMITTRANSACTIONRECORDSIZE 9
40 #define COMPLETEDGCIRECORDSIZE 2
41 #define PAGEHEADERSIZE 32
42 #define FILEDESCRIPTORHEADERSIZE 3
43 #define FILEDESCRIPTORENTRYSIZE 3
44 #define NEXTMBYTERECORDSIZE 1
45 #define ABORTTRANSACTIONRECORDSIZE 3
47 extern unsigned NO_MBYTE_IN_FILE;
57 Uint32 getLogRecordSize();
60 Uint32 m_transactionId1;
61 Uint32 m_transactionId2;
73 Uint32 getLogRecordSize();
87 Uint32 getLogRecordSize(Uint32 wordsRead);
91 Uint32 m_logRecordSize;
93 Uint32 m_operationType;
94 Uint32 m_attributeLength;
110 Uint32 getLogRecordSize();
113 Uint32 m_theCompletedGCI;
124 Uint32 getLogRecordSize(Uint32);
134 friend NdbOut& operator<<(NdbOut&,
const PageHeader&);
137 Uint32 getLogRecordSize();
143 Uint32 m_max_gci_completed;
144 Uint32 m_max_gci_started;
146 Uint32 m_previous_page;
147 Uint32 m_ndb_version;
148 Uint32 m_number_of_logfiles;
149 Uint32 m_current_page_index;
150 Uint32 m_old_prepare_file_number;
151 Uint32 m_old_prepare_page_reference;
155 Uint32 m_page_i_value;
156 Uint32 m_place_written_from;
159 Uint32 m_word_written;
160 Uint32 m_in_writing_flag;
161 Uint32 m_prev_page_no;
162 Uint32 m_in_free_list;
173 Uint32 m_noOfDescriptors;
182 Uint32 getLogRecordSize();
184 void printARecord( Uint32 )
const;
186 Uint32 m_fdRecord[1];
198 Uint32 getLogRecordSize();
202 Uint32 m_schemaVersion;
204 Uint32 m_fileNumberOfPrepareOperation;
205 Uint32 m_startPageNumberOfPrepareOperation;
206 Uint32 m_startPageIndexOfPrepareOperation;
207 Uint32 m_stopPageNumberOfPrepareOperation;
208 Uint32 m_globalCheckpoint;
219 Uint32 getLogRecordSize();
224 Uint32 m_fileNumberOfPrepareOperation;
225 Uint32 m_startPageNumberOfPrepareOperation;
226 Uint32 m_startPageIndexOfPrepareOperation;
227 Uint32 m_stopPageNumberOfPrepareOperation;
228 Uint32 m_globalCheckpoint;