Commit 75229f90 authored by Yoni Fogel's avatar Yoni Fogel

Updated test to use new

error code for running out of locks

git-svn-id: file:///svn/tokudb@2994 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2d7c5ba2
......@@ -99,13 +99,13 @@ static void make_db (int n_locks) {
// Lock escalation cannot help here: We require too many locks because we are alternating between tid and tid2
if (i*2+j<effective_n_locks) {
CKERR(r);
} else assert(r==ENOMEM);
} else CKERR2(r, TOKUDB_OUT_OF_LOCKS);
#else
if (i*2+j+2<effective_n_locks) {
if (r!=0) printf("r=%d on i=%d j=%d eff=%d\n", r, i, j, effective_n_locks);
CKERR(r);
}
else assert(r==ENOMEM);
else CKERR2(r, TOKUDB_OUT_OF_LOCKS);
#endif
}
}
......
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