mdbx++: minor fix env::setup().

Change-Id: I751cbf5c9d1d83a3b4da2af1f5950d85ce2934cd
This commit is contained in:
Leonid Yuriev 2020-08-29 15:12:47 +03:00
parent 12e19cedc0
commit eca3904dfa

View File

@ -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));
}