Commit 1aaaced5 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5367 fix toku_verify_ftnode_internal to not exit on success ;-)

git-svn-id: file:///svn/toku/tokudb@46994 c7de825b-a66e-492c-adef-691d508d4ae1
parent 48eaeaa9
...@@ -415,7 +415,7 @@ toku_verify_ftnode (FT_HANDLE brt, ...@@ -415,7 +415,7 @@ toku_verify_ftnode (FT_HANDLE brt,
result = toku_verify_ftnode_internal( result = toku_verify_ftnode_internal(
brt, rootmsn, parentmsn, node, height, lesser_pivot, greatereq_pivot, brt, rootmsn, parentmsn, node, height, lesser_pivot, greatereq_pivot,
verbose, keep_going_on_failure, false); verbose, keep_going_on_failure, false);
if (!keep_going_on_failure || result != TOKUDB_NEEDS_REPAIR) goto done; if (result != 0 && (!keep_going_on_failure || result != TOKUDB_NEEDS_REPAIR)) goto done;
} }
if (node->height > 0) { if (node->height > 0) {
toku_move_ftnode_messages_to_stale(brt->ft, node); toku_move_ftnode_messages_to_stale(brt->ft, node);
...@@ -425,7 +425,7 @@ toku_verify_ftnode (FT_HANDLE brt, ...@@ -425,7 +425,7 @@ toku_verify_ftnode (FT_HANDLE brt,
verbose, keep_going_on_failure, true); verbose, keep_going_on_failure, true);
if (result == 0) { if (result == 0) {
result = result2; result = result2;
if (!keep_going_on_failure || result != TOKUDB_NEEDS_REPAIR) goto done; if (result != 0 && (!keep_going_on_failure || result != TOKUDB_NEEDS_REPAIR)) goto done;
} }
// Verify that the subtrees have the right properties. // Verify that the subtrees have the right properties.
......
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