strange return in BDB. addresses #838

git-svn-id: file:///svn/tokudb@4541 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2008-06-15 12:44:45 +00:00
parent 10f21e7224
commit 5c3b4003e8

View file

@ -364,7 +364,12 @@ void test_838_defer_delete_commit(int n) {
if (i > 0 && t > 10*maxt)
testresult = 1;
}
r = cursor->c_close(cursor); assert(r == 0);
r = cursor->c_close(cursor);
#if USE_BDB
if (r != expectr) printf("%s:%d:WARNING r=%d expectr=%d\n", __FILE__, __LINE__, r, expectr);
#else
assert(r == expectr);
#endif
r = txn->commit(txn, 0); assert(r == expectr);
}