mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:34:14 +08:00
mdbx: 1/1 as default grow/shrink for MDBX_DEBUG.
Change-Id: I90fa2705113f134984f9ec341ef37131e598d121
This commit is contained in:
parent
c49d1bc97a
commit
aa5403ad38
@ -4371,6 +4371,13 @@ LIBMDBX_API int mdbx_env_set_geometry(MDBX_env *env, intptr_t size_lower,
|
||||
const bool outside_txn =
|
||||
(!env->me_txn0 || env->me_txn0->mt_owner != mdbx_thread_self());
|
||||
|
||||
#if MDBX_DEBUG
|
||||
if (growth_step < 0)
|
||||
growth_step = 1;
|
||||
if (shrink_threshold < 0)
|
||||
shrink_threshold = 1;
|
||||
#endif
|
||||
|
||||
int rc = MDBX_PROBLEM;
|
||||
if (env->me_map) {
|
||||
/* env already mapped */
|
||||
|
Loading…
x
Reference in New Issue
Block a user