diff --git a/src/core.c b/src/core.c index 5c0ebb74..88cf256b 100644 --- a/src/core.c +++ b/src/core.c @@ -11058,11 +11058,12 @@ mdbx_env_set_geometry(MDBX_env *env, intptr_t size_lower, intptr_t size_now, (env->me_txn0 && env->me_txn0->mt_owner == mdbx_thread_self()); #if MDBX_DEBUG - if (growth_step < 0) + if (growth_step < 0) { growth_step = 1; - if (shrink_threshold < 0) - shrink_threshold = 1; -#endif + if (shrink_threshold < 0) + shrink_threshold = 1; + } +#endif /* MDBX_DEBUG */ intptr_t reasonable_maxsize = 0; bool need_unlock = false;