mdbx: 1/1 as default grow/shrink for MDBX_DEBUG.

Change-Id: I90fa2705113f134984f9ec341ef37131e598d121
This commit is contained in:
Leo Yuriev 2017-07-24 21:24:45 +03:00
parent c49d1bc97a
commit aa5403ad38

View File

@ -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 */