Commit 332094cb authored by marko's avatar marko

branches/zip: Enclose some functions inside #ifdef UNIV_HOTBACKUP:

ut_sprintf_timestamp_without_extra_chars(), ut_get_year_month_day(),
log_reset_first_header_and_checkpoint(): These functions are only used
in InnoDB Hot Backup.
parent e3b41de1
......@@ -255,6 +255,7 @@ UNIV_INTERN
void
log_groups_write_checkpoint_info(void);
/*==================================*/
#ifdef UNIV_HOTBACKUP
/**********************************************************
Writes info to a buffer of a log group when log files are created in
backup restoration. */
......@@ -267,6 +268,7 @@ log_reset_first_header_and_checkpoint(
ib_uint64_t start); /* in: lsn of the start of the first log file;
we pretend that there is a checkpoint at
start + LOG_BLOCK_HDR_SIZE */
#endif /* UNIV_HOTBACKUP */
/************************************************************************
Starts an archiving operation. */
UNIV_INTERN
......
......@@ -196,6 +196,7 @@ void
ut_sprintf_timestamp(
/*=================*/
char* buf); /* in: buffer where to sprintf */
#ifdef UNIV_HOTBACKUP
/**************************************************************
Sprintfs a timestamp to a buffer with no spaces and with ':' characters
replaced by '_'. */
......@@ -213,6 +214,7 @@ ut_get_year_month_day(
ulint* year, /* out: current year */
ulint* month, /* out: month */
ulint* day); /* out: day */
#endif /* UNIV_HOTBACKUP */
/*****************************************************************
Runs an idle loop on CPU. The argument gives the desired delay
in microseconds on 100 MHz Pentium + Visual C++. */
......
......@@ -1782,6 +1782,7 @@ log_group_checkpoint(
}
}
#ifdef UNIV_HOTBACKUP
/**********************************************************
Writes info to a buffer of a log group when log files are created in
backup restoration. */
......@@ -1833,6 +1834,7 @@ log_reset_first_header_and_checkpoint(
allocated size in the tablespace, but unfortunately we do not
know it here */
}
#endif /* UNIV_HOTBACKUP */
/**********************************************************
Reads a checkpoint info from a log group header to log_sys->checkpoint_buf. */
......
......@@ -270,6 +270,7 @@ ut_sprintf_timestamp(
#endif
}
#ifdef UNIV_HOTBACKUP
/**************************************************************
Sprintfs a timestamp to a buffer with no spaces and with ':' characters
replaced by '_'. */
......@@ -350,6 +351,7 @@ ut_get_year_month_day(
*day = (ulint)cal_tm_ptr->tm_mday;
#endif
}
#endif /* UNIV_HOTBACKUP */
/*****************************************************************
Runs an idle loop on CPU. The argument gives the desired delay
......
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