Commit 2b70bb19 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4429 fix test for bdb 5.3 refs[t:4429]

git-svn-id: file:///svn/toku/tokudb@39118 c7de825b-a66e-492c-adef-691d508d4ae1
parent b5464776
......@@ -93,7 +93,6 @@ static void make_db (int n_locks) {
r=env->txn_begin(env, 0, &tid, 0); CKERR(r);
r=env->txn_begin(env, 0, &tid2, 0); CKERR(r);
#if 1
for (i=0; i<effective_n_locks*2; i++) {
int j;
......@@ -114,16 +113,20 @@ static void make_db (int n_locks) {
if (i*2+j<effective_n_locks) {
CKERR(r);
} else CKERR2(r, TOKUDB_OUT_OF_LOCKS);
#else
#if DB_VERSION_MAJOR >= 5
if (i*2+j+1<effective_n_locks) {
#else
if (i*2+j+2<effective_n_locks) {
#endif
if (r!=0) printf("r=%d on i=%d j=%d eff=%d\n", r, i, j, effective_n_locks);
CKERR(r);
}
else CKERR2(r, ENOMEM);
} else {
CKERR2(r, ENOMEM);
}
#endif
}
}
#endif
r=tid->commit(tid2, 0); assert(r==0);
r=tid->commit(tid, 0); assert(r==0);
r=db->close(db, 0); assert(r==0);
......
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