test: fix oom_callback().

This commit is contained in:
Leo Yuriev 2017-05-24 19:22:48 +03:00
parent af7b468e63
commit aa9aa79e11

View File

@ -100,8 +100,8 @@ int testcase::oom_callback(MDBX_env *env, int pid, mdbx_tid_t tid, uint64_t txn,
", txn #%" PRIu64 ", gap %d",
pid, (size_t)tid, txn, gap);
if (self->should_continue()) {
/* osal_yield(); */
if (retry > 0 && self->should_continue()) {
osal_yield();
osal_udelay(retry * 100);
return 1 /* always retry */;
}