mdbx: drop/replace PNL-constant with MDBX_LIST_MAX.

Change-Id: I71722f06c771ad57e3e7ca84f3d497750cae8419
This commit is contained in:
Leonid Yuriev
2018-08-19 14:03:21 +03:00
parent ffdd487037
commit 08fa2c1746
3 changed files with 33 additions and 39 deletions

View File

@@ -340,7 +340,7 @@ static int handle_freedb(const uint64_t record_number, const MDBX_val *key,
data->iov_len);
else {
const pgno_t number = *iptr++;
if (number < 1 || number > MDBX_PNL_MAX)
if (number < 1 || number > MDBX_LIST_MAX)
problem_add("entry", record_number, "wrong idl length", "%" PRIiPTR "",
number);
else if ((number + 1) * sizeof(pgno_t) != data->iov_len)