Commit 972e1f6c authored by Yoni Fogel's avatar Yoni Fogel

addresses #2155 refs[t:2155] Reverse part of r15848.

We run 'backward' recovery and 'forward recovery' on the item we turn around on, so do not set 'forward saw checkpoint begin' state
till we're in forward recovery.

git-svn-id: file:///svn/toku/tokudb@15849 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3ab29cbd
...@@ -578,7 +578,6 @@ static int toku_recover_backward_begin_checkpoint (struct logtype_begin_checkpoi ...@@ -578,7 +578,6 @@ static int toku_recover_backward_begin_checkpoint (struct logtype_begin_checkpoi
if (ss->n_live_txns==0) { if (ss->n_live_txns==0) {
fprintf(stderr, "Tokudb recovery turning around at begin checkpoint %"PRIu64"\n", l->lsn.lsn); fprintf(stderr, "Tokudb recovery turning around at begin checkpoint %"PRIu64"\n", l->lsn.lsn);
renv->goforward = TRUE; renv->goforward = TRUE;
ss->ss = SS_FORWARD_SAW_CKPT;
return 0; return 0;
} else { } else {
fprintf(stderr, "Tokudb recovery begin checkpoint at %"PRIu64" looking for %"PRIu64"\n", l->lsn.lsn, ss->min_live_txn); fprintf(stderr, "Tokudb recovery begin checkpoint at %"PRIu64" looking for %"PRIu64"\n", l->lsn.lsn, ss->min_live_txn);
......
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