37 extern ibool recv_replay_file_ops;
44 recv_read_cp_info_for_backup(
54 ib_uint64_t* first_header_lsn);
62 recv_scan_log_seg_for_backup(
66 ib_uint64_t* scanned_lsn,
68 ulint* scanned_checkpoint_no,
72 ulint* n_bytes_scanned);
83 #ifdef UNIV_LOG_ARCHIVE
89 recv_recovery_from_backup_is_on(
void);
100 #ifndef UNIV_HOTBACKUP
106 #ifndef UNIV_HOTBACKUP
115 # define recv_recover_page(jri, block) recv_recover_page_func(jri, block)
125 # define recv_recover_page(jri, block) recv_recover_page_func(block)
137 #ifdef UNIV_LOG_ARCHIVE
140 ib_uint64_t limit_lsn,
143 ib_uint64_t min_flushed_lsn,
145 ib_uint64_t max_flushed_lsn);
147 #ifdef UNIV_LOG_ARCHIVE
158 # define recv_recovery_from_checkpoint_start(type,lim,min,max) \
159 recv_recovery_from_checkpoint_start_func(type,lim,min,max)
171 # define recv_recovery_from_checkpoint_start(type,lim,min,max) \
172 recv_recovery_from_checkpoint_start_func(min,max)
197 ulint available_memory,
206 ib_uint64_t start_lsn,
207 ib_uint64_t* contiguous_lsn,
210 ib_uint64_t* group_scanned_lsn);
223 #ifdef UNIV_LOG_ARCHIVE
226 ibool new_logs_created);
230 #ifdef UNIV_HOTBACKUP
235 recv_reset_log_files_for_backup(
267 ulint available_memory);
268 #ifndef UNIV_HOTBACKUP
290 #ifdef UNIV_HOTBACKUP
295 recv_apply_log_recs_for_backup(
void);
298 #ifdef UNIV_LOG_ARCHIVE
304 recv_recovery_from_archive_start(
306 ib_uint64_t min_flushed_lsn,
308 ib_uint64_t limit_lsn,
319 recv_recovery_from_archive_finish(
void);
376 hash_node_t addr_hash;
383 #ifndef UNIV_HOTBACKUP
388 ibool apply_log_recs;
393 ibool apply_batch_on;
397 ulint last_log_buf_size;
403 byte* last_block_buf_start;
408 ib_uint64_t parse_start_lsn;
413 ib_uint64_t scanned_lsn;
416 ulint scanned_checkpoint_no;
419 ulint recovered_offset;
422 ib_uint64_t recovered_lsn;
425 ib_uint64_t limit_lsn;
427 ibool found_corrupt_log;
432 #ifdef UNIV_LOG_ARCHIVE
466 extern ibool recv_no_log_write;
473 #ifdef UNIV_HOTBACKUP
475 extern ibool recv_is_making_a_backup;
482 #define RECV_PARSING_BUF_SIZE (2 * 1024 * 1024)
486 #define RECV_SCAN_SIZE (4 * UNIV_PAGE_SIZE)
495 #include "log0recv.ic"