Commit 06c45093 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix the print of recovery states closes[t:2579]

git-svn-id: file:///svn/toku/tokudb@19942 c7de825b-a66e-492c-adef-691d508d4ae1
parent a78bb0f7
......@@ -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];
......
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