mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
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.
This commit is contained in:
parent
0f8dcc7cb7
commit
15b9f877ec
4 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue