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:
Rich Prohaska 2013-04-16 23:59:10 -04:00 committed by Yoni Fogel
parent 5a3875a5ea
commit a4955938e5

View file

@ -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];