Commit db657df4 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4762 criteria for garbage collection changed, so the stat64 behaviour is...

#4762 criteria for garbage collection changed, so the stat64 behaviour is slightly different for the root node refs[t:4762]

git-svn-id: file:///svn/toku/tokudb@42385 c7de825b-a66e-492c-adef-691d508d4ae1
parent 08af9f0d
......@@ -99,7 +99,7 @@ run_test (void) {
DB_BTREE_STAT64 s;
r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 0 && s.bt_dsize == 0);
assert(s.bt_nkeys <= 1 && s.bt_dsize == 0); // since garbage collection may not occur, the key count may not be updated
r = db->close(db, 0); CKERR(r);
......@@ -109,7 +109,7 @@ run_test (void) {
r = txn->commit(txn, 0); CKERR(r);
r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 0 && s.bt_dsize == 0);
assert(s.bt_nkeys <= 1 && s.bt_dsize == 0);
}
// verify update of non-existing key inserts a row
......@@ -180,7 +180,7 @@ run_test (void) {
r = txn->commit(txn, 0); CKERR(r);
r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 0 && s.bt_dsize == 0);
assert(s.bt_nkeys <= 1 && s.bt_dsize == 0); // since garbage collection may not occur, the key count may not be updated
r = db->close(db, 0); CKERR(r);
......@@ -190,7 +190,7 @@ run_test (void) {
r = txn->commit(txn, 0); CKERR(r);
r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 0 && s.bt_dsize == 0);
assert(s.bt_nkeys <= 1 && s.bt_dsize == 0);
}
r = db->close(db, 0); CKERR(r);
......
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