22 #include <SimulatedBlock.hpp>
26 #include <KeyTable.hpp>
27 #include <DLHashTable.hpp>
28 #include <DataBuffer.hpp>
29 #include <NodeBitmask.hpp>
30 #include <backup/BackupFormat.hpp>
43 void execSTTOR(
Signal* signal);
45 void execREAD_CONFIG_REQ(
Signal*);
46 void execDUMP_STATE_ORD(
Signal* signal);
47 void execCONTINUEB(
Signal* signal);
48 void execRESTORE_LCP_REQ(
Signal* signal);
50 void execFSOPENREF(
Signal*);
52 void execFSREADREF(
Signal*);
53 void execFSREADCONF(
Signal*);
54 void execFSCLOSEREF(
Signal*);
55 void execFSCLOSECONF(
Signal*);
57 void execLQHKEYREF(
Signal*);
58 void execLQHKEYCONF(
Signal*);
97 FILE_THREAD_RUNNING = 2,
98 RESTORE_THREAD_RUNNING = 4,
104 Uint32 m_table_version;
105 Uint32 m_fragment_id;
106 List::Head m_columns;
108 Uint32 m_current_page_ptr_i;
109 Uint32 m_current_page_pos;
111 Uint32 m_current_file_page;
112 Uint32 m_outstanding_reads;
113 Uint32 m_outstanding_operations;
114 Uint64 m_rows_restored;
116 Uint32 m_current_page_index;
126 bool is_lcp()
const {
return m_file_type == BackupFormat::LCP_FILE;}
131 void release_file(FilePtr);
133 void open_file(
Signal*, FilePtr);
134 void read_file(
Signal*, FilePtr);
135 void restore_next(
Signal*, FilePtr);
136 void parse_file_header(
Signal*, FilePtr,
const Uint32*, Uint32 len);
137 void parse_table_list(
Signal*, FilePtr,
const Uint32*, Uint32 len);
138 void parse_table_description(
Signal*, FilePtr,
const Uint32*, Uint32 len);
139 void parse_fragment_header(
Signal*, FilePtr,
const Uint32*, Uint32 len);
140 void parse_record(
Signal*, FilePtr,
const Uint32*, Uint32 len);
141 void parse_fragment_footer(
Signal*, FilePtr,
const Uint32*, Uint32 len);
142 void parse_gcp_entry(
Signal*, FilePtr,
const Uint32*, Uint32 len);
143 void close_file(
Signal*, FilePtr);
145 void reorder_key(
const struct KeyDescriptor*, Uint32* data, Uint32 len);
146 Uint32 calulate_hash(Uint32 tableId,
const Uint32 *src);
148 void parse_error(
Signal*, FilePtr, Uint32 line, Uint32
extra);
149 int check_file_version(
Signal*, Uint32 file_version);
150 void restore_lcp_conf(
Signal* signal, FilePtr);
151 void crash_during_restore(FilePtr, Uint32 line, Uint32 errCode);
161 List::DataBufferPool m_databuffer_pool;