Commit 7377d4c7 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

refs #5700, fix test

git-svn-id: file:///svn/toku/tokudb@50576 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0842f9ff
...@@ -137,7 +137,7 @@ run_test (void) { ...@@ -137,7 +137,7 @@ run_test (void) {
r = txn->commit(txn, 0); CKERR(r); r = txn->commit(txn, 0); CKERR(r);
r = db->stat64(db, NULL, &s); CKERR(r); r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 2 && s.bt_dsize == sizeof key + sizeof val); assert(s.bt_nkeys == 1 && s.bt_dsize == sizeof key + sizeof val);
} }
// verify update callback overwrites the row // verify update callback overwrites the row
...@@ -151,7 +151,7 @@ run_test (void) { ...@@ -151,7 +151,7 @@ run_test (void) {
DB_BTREE_STAT64 s; DB_BTREE_STAT64 s;
r = db->stat64(db, NULL, &s); CKERR(r); r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 2 && s.bt_dsize == sizeof key + sizeof val); assert(s.bt_nkeys == 1 && s.bt_dsize == sizeof key + sizeof val);
r = db->close(db, 0); CKERR(r); r = db->close(db, 0); CKERR(r);
...@@ -161,7 +161,7 @@ run_test (void) { ...@@ -161,7 +161,7 @@ run_test (void) {
r = txn->commit(txn, 0); CKERR(r); r = txn->commit(txn, 0); CKERR(r);
r = db->stat64(db, NULL, &s); CKERR(r); r = db->stat64(db, NULL, &s); CKERR(r);
assert(s.bt_nkeys == 2 && s.bt_dsize == sizeof key + sizeof val); assert(s.bt_nkeys == 1 && s.bt_dsize == sizeof key + sizeof val);
} }
// verify update callback deletes the row // verify update callback deletes the row
......
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