Commit 30e3ad34 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3948 verify trees generated by the loader closes[t:3948]

git-svn-id: file:///svn/toku/tokudb@35167 c7de825b-a66e-492c-adef-691d508d4ae1
parent 016721f8
...@@ -231,9 +231,15 @@ static int uint_cmp(const void *ap, const void *bp) { ...@@ -231,9 +231,15 @@ static int uint_cmp(const void *ap, const void *bp) {
return 0; return 0;
} }
static void check_results(DB **dbs) static void check_results(DB **dbs) {
{ // verify trees
for(int j=0;j<NUM_DBS;j++){ for (int j = 0;j < NUM_DBS; j++) {
int r = dbs[j]->verify_with_progress(dbs[j], NULL, NULL, 0, 0);
assert(r == 0);
}
// verify rows
for (int j = 0;j < NUM_DBS; j++) {
unsigned int prev_k = 0, prev_v = 0; unsigned int prev_k = 0, prev_v = 0;
DBT key, val; DBT key, val;
......
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