37 extern ibool recv_replay_file_ops;
44 recv_read_checkpoint_info_for_backup(
51 lsn_t* first_header_lsn)
54 __attribute__((nonnull));
60 recv_scan_log_seg_for_backup(
66 ulint* scanned_checkpoint_no,
70 ulint* n_bytes_scanned);
81 #ifdef UNIV_LOG_ARCHIVE
87 recv_recovery_from_backup_is_on(
void);
98 #ifndef UNIV_HOTBACKUP
104 #ifndef UNIV_HOTBACKUP
113 # define recv_recover_page(jri, block) recv_recover_page_func(jri, block)
123 # define recv_recover_page(jri, block) recv_recover_page_func(block)
135 #ifdef UNIV_LOG_ARCHIVE
141 lsn_t min_flushed_lsn,
143 lsn_t max_flushed_lsn);
145 #ifdef UNIV_LOG_ARCHIVE
156 # define recv_recovery_from_checkpoint_start(type,lim,min,max) \
157 recv_recovery_from_checkpoint_start_func(type,lim,min,max)
169 # define recv_recovery_from_checkpoint_start(type,lim,min,max) \
170 recv_recovery_from_checkpoint_start_func(min,max)
195 ulint available_memory,
205 lsn_t* contiguous_lsn,
208 lsn_t* group_scanned_lsn);
216 #ifdef UNIV_LOG_ARCHIVE
218 ibool new_logs_created,
228 #ifdef UNIV_HOTBACKUP
233 recv_reset_log_files_for_backup(
265 ulint available_memory);
266 #ifndef UNIV_HOTBACKUP
288 #ifdef UNIV_HOTBACKUP
293 recv_apply_log_recs_for_backup(
void);
296 #ifdef UNIV_LOG_ARCHIVE
302 recv_recovery_from_archive_start(
304 lsn_t min_flushed_lsn,
317 recv_recovery_from_archive_finish(
void);
366 UT_LIST_BASE_NODE_T(
recv_t)
368 hash_node_t addr_hash;
372 void add(byte* page);
374 byte* find_page(ulint space_id, ulint page_no);
376 std::list<byte *> pages;
385 #ifndef UNIV_HOTBACKUP
393 ibool apply_log_recs;
398 ibool apply_batch_on;
402 ulint last_log_buf_size;
408 byte* last_block_buf_start;
413 lsn_t parse_start_lsn;
421 ulint scanned_checkpoint_no;
424 ulint recovered_offset;
432 ibool found_corrupt_log;
437 #ifdef UNIV_LOG_ARCHIVE
480 #ifdef UNIV_HOTBACKUP
482 extern ibool recv_is_making_a_backup;
489 #define RECV_PARSING_BUF_SIZE (2 * 1024 * 1024)
493 #define RECV_SCAN_SIZE (4 * UNIV_PAGE_SIZE)