mdbx: make mdbx_env_set_geometry() behavior equal to LMDB (i.e. fixed size).

Change-Id: I26dfcbb03362dde6fbf4b0f59530ddbf4e2b0723
This commit is contained in:
Leonid Yuriev 2019-10-11 16:54:55 +03:00
parent d67d3f97cc
commit 99e9956410
2 changed files with 3 additions and 3 deletions

4
mdbx.h
View File

@ -1949,8 +1949,8 @@ LIBMDBX_API int mdbx_env_get_fd(MDBX_env *env, mdbx_filehandle_t *fd);
* option.
*
* Legacy mdbx_env_set_mapsize() correspond to calling mdbx_env_set_geometry()
* with the argument size_now=size and -1 (i.e. default) for all other
* parameters.
* with the arguments size_lower, size_now, size_upper equal to the size
* and -1 (i.e. default) for all other parameters.
*
* [in] env An environment handle returned by mdbx_env_create()
*

View File

@ -6923,7 +6923,7 @@ bailout:
}
int __cold mdbx_env_set_mapsize(MDBX_env *env, size_t size) {
return mdbx_env_set_geometry(env, -1, size, -1, -1, -1, -1);
return mdbx_env_set_geometry(env, size, size, size, -1, -1, -1);
}
int __cold mdbx_env_set_maxdbs(MDBX_env *env, MDBX_dbi dbs) {