mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx-test: fix calculation default size_now
of DB.
This commit is contained in:
parent
5aeb7ccf25
commit
65defdd0a8
@ -134,9 +134,8 @@ void actor_params::set_defaults(const std::string &tmpdir) {
|
||||
table_flags = MDBX_DUPSORT;
|
||||
|
||||
size_lower = -1;
|
||||
size_now =
|
||||
intptr_t(1024) * 1024 * ((table_flags & MDBX_DUPSORT) ? 256 : 1024);
|
||||
size_now = std::max(size_now, mdbx_limits_dbsize_max(-1));
|
||||
size_now = intptr_t((table_flags & MDBX_DUPSORT) ? 256 : 1024) << 20;
|
||||
size_now = std::min(size_now, mdbx_limits_dbsize_max(-1));
|
||||
size_upper = -1;
|
||||
shrink_threshold = -1;
|
||||
growth_step = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user