mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-23 21:14:28 +08:00
mdbx: backport - add mdbx_limits_xyz() (squashed).
Change-Id: I56c79704c59386a0c4d84b001020484c23925e6c
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2017-2018 Leonid Yuriev <leo@yuriev.ru>
|
||||
* and other libmdbx authors: please see AUTHORS file.
|
||||
* All rights reserved.
|
||||
@@ -195,8 +195,8 @@ int main(int argc, char *const argv[]) {
|
||||
}
|
||||
if (config::parse_option(
|
||||
argc, argv, narg, "keylen.max", params.keylen_max, config::no_scale,
|
||||
0, std::min(mdbx_get_maxkeysize(0), (int)UINT16_MAX))) {
|
||||
|
||||
0,
|
||||
std::min((unsigned)mdbx_get_maxkeysize(0), (unsigned)UINT16_MAX))) {
|
||||
if (params.keylen_min > params.keylen_max)
|
||||
params.keylen_min = params.keylen_max;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user