mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
fix the print of recovery states closes[t:2579]
git-svn-id: file:///svn/toku/tokudb@19942 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
5a3875a5ea
commit
a4955938e5
1 changed files with 4 additions and 4 deletions
|
@ -34,6 +34,10 @@ struct scan_state {
|
|||
uint32_t checkpoint_num_xstillopen;
|
||||
};
|
||||
|
||||
static const char *scan_state_strings[] = {
|
||||
"?", "bw_newer", "bw_between", "fw_between", "fw_newer",
|
||||
};
|
||||
|
||||
static void scan_state_init(struct scan_state *ss) {
|
||||
ss->ss = BACKWARD_NEWER_CHECKPOINT_END;
|
||||
ss->checkpoint_begin_lsn = ZERO_LSN;
|
||||
|
@ -42,10 +46,6 @@ static void scan_state_init(struct scan_state *ss) {
|
|||
ss->checkpoint_num_xstillopen = 0;
|
||||
}
|
||||
|
||||
static const char *scan_state_strings[] = {
|
||||
"?", "bw_newer", "bw_between", "bw_older", "fw_older", "fw_between", "fw_newer",
|
||||
};
|
||||
|
||||
static const char *scan_state_string(struct scan_state *ss) {
|
||||
assert(BACKWARD_NEWER_CHECKPOINT_END <= ss->ss && ss->ss <= FORWARD_NEWER_CHECKPOINT_END);
|
||||
return scan_state_strings[ss->ss];
|
||||
|
|
Loading…
Add table
Reference in a new issue