Commit 33c9330d authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#2717 refs[t:2717] print the tree stats if verbose

git-svn-id: file:///svn/toku/tokudb@21043 c7de825b-a66e-492c-adef-691d508d4ae1
parent 421b29ed
...@@ -327,8 +327,9 @@ static void test_loader(DB **dbs) ...@@ -327,8 +327,9 @@ static void test_loader(DB **dbs)
DB_BTREE_STAT64 stats; DB_BTREE_STAT64 stats;
r = dbs[i]->stat64(dbs[i], txn, &stats); r = dbs[i]->stat64(dbs[i], txn, &stats);
CKERR(r); CKERR(r);
printf("n_keys=%" PRIu64 " n_data=%" PRIu64 " dsize=%" PRIu64 " fsize=%" PRIu64 "\n", if (verbose)
stats.bt_nkeys, stats.bt_ndata, stats.bt_dsize, stats.bt_fsize); printf("n_keys=%" PRIu64 " n_data=%" PRIu64 " dsize=%" PRIu64 " fsize=%" PRIu64 "\n",
stats.bt_nkeys, stats.bt_ndata, stats.bt_dsize, stats.bt_fsize);
assert(stats.bt_nkeys == (u_int64_t)NUM_ROWS); assert(stats.bt_nkeys == (u_int64_t)NUM_ROWS);
assert(stats.bt_ndata == (u_int64_t)NUM_ROWS); assert(stats.bt_ndata == (u_int64_t)NUM_ROWS);
assert(stats.bt_dsize == ((u_int64_t)NUM_ROWS) * 2 * sizeof(unsigned int)); assert(stats.bt_dsize == ((u_int64_t)NUM_ROWS) * 2 * sizeof(unsigned int));
......
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