mdbx: rework PNL, DPL and TXN lists.

Change-Id: I79c7399912516b17cc255fc8e24b5941338e5eb1
This commit is contained in:
Leo Yuriev
2018-09-01 19:36:45 +03:00
parent 8f51b6bac2
commit e00dce3543
3 changed files with 438 additions and 381 deletions

View File

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