mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx++: minor fix env::setup().
Change-Id: I751cbf5c9d1d83a3b4da2af1f5950d85ce2934cd
This commit is contained in:
parent
12e19cedc0
commit
eca3904dfa
@ -660,7 +660,7 @@ void env::close(bool dont_sync) {
|
||||
__cold void env::setup(unsigned max_maps, unsigned max_readers) {
|
||||
if (max_readers > 0)
|
||||
error::success_or_throw(::mdbx_env_set_maxreaders(handle_, max_readers));
|
||||
if (max_readers > 0)
|
||||
if (max_maps > 0)
|
||||
error::success_or_throw(::mdbx_env_set_maxdbs(handle_, max_maps));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user