mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx: make mdbx_env_set_geometry() behavior equal to LMDB (i.e. fixed size).
Change-Id: I26dfcbb03362dde6fbf4b0f59530ddbf4e2b0723
This commit is contained in:
parent
d67d3f97cc
commit
99e9956410
4
mdbx.h
4
mdbx.h
@ -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()
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user