mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
test: fix oom_callback().
This commit is contained in:
parent
af7b468e63
commit
aa9aa79e11
@ -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 */;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user