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