Commit 859394a0 authored by marko's avatar marko

branches/zip: Enclose some backup functions in #ifdef UNIV_HOTBACKUP.

recv_read_cp_info_for_backup(), recv_scan_log_seg_for_backup():
These functions are only called by InnoDB Hot Backup.
parent d8933cec
......@@ -17,7 +17,6 @@ Created 9/20/1997 Heikki Tuuri
#ifdef UNIV_HOTBACKUP
extern ibool recv_replay_file_ops;
#endif /* UNIV_HOTBACKUP */
/***********************************************************************
Reads the checkpoint info needed in hot backup. */
......@@ -55,6 +54,7 @@ recv_scan_log_seg_for_backup(
ulint* n_bytes_scanned);/* out: how much we were able to
scan, smaller than buf_len if log
data ended here */
#endif /* UNIV_HOTBACKUP */
/***********************************************************************
Returns TRUE if recovery is currently running. */
UNIV_INLINE
......
......@@ -574,6 +574,7 @@ not_consistent:
return(DB_SUCCESS);
}
#ifdef UNIV_HOTBACKUP
/***********************************************************************
Reads the checkpoint info needed in hot backup. */
UNIV_INTERN
......@@ -644,6 +645,7 @@ recv_read_cp_info_for_backup(
return(TRUE);
}
#endif /* UNIV_HOTBACKUP */
/**********************************************************
Checks the 4-byte checksum to the trailer checksum field of a log block.
......@@ -681,6 +683,7 @@ log_block_checksum_is_ok_or_old_format(
return(FALSE);
}
#ifdef UNIV_HOTBACKUP
/***********************************************************************
Scans the log segment and n_bytes_scanned is set to the length of valid
log scanned. */
......@@ -770,6 +773,7 @@ recv_scan_log_seg_for_backup(
}
}
}
#endif /* UNIV_HOTBACKUP */
/***********************************************************************
Tries to parse a single log record body and also applies it to a page if
......
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