mdbx: refine mdbx_env_set_geometry() internals and 16-bit representation of grow/shrink values.

More for https://github.com/erthink/libmdbx/issues/166.

Change-Id: I7390f954819309ee4a01faf587aee6b5152e44bc
This commit is contained in:
Leonid Yuriev
2021-03-14 03:42:52 +03:00
parent 55620c1d13
commit 4b8b7d5a77
2 changed files with 56 additions and 52 deletions

View File

@@ -1266,7 +1266,7 @@ static __maybe_unused __inline void mdbx_jitter4testing(bool tiny) {
/* Default size of memory map.
* This is certainly too small for any actual applications. Apps should
* always set the size explicitly using mdbx_env_set_mapsize(). */
* always set the size explicitly using mdbx_env_set_geometry(). */
#define DEFAULT_MAPSIZE MEGABYTE
/* Number of slots in the reader table.