diff --git a/test/test.cc b/test/test.cc index cded3e2a..6c296ad0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -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 */; }