mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-29 23:12:35 +08:00
mdbx: allow GC's PNL be partially unused.
This commit is contained in:
committed by
Leo Yuriev
parent
6fb628d88d
commit
64fb9b81f3
@@ -420,7 +420,8 @@ static int handle_freedb(const uint64_t record_number, const MDBX_val *key,
|
||||
"%" PRIuSIZE " > %" PRIuSIZE " (corruption)",
|
||||
(number + 1) * sizeof(pgno_t), data->iov_len);
|
||||
number = data->iov_len / sizeof(pgno_t) - 1;
|
||||
} else if ((number + 1) * sizeof(pgno_t) < data->iov_len)
|
||||
} else if (data->iov_len - (number + 1) * sizeof(pgno_t) >
|
||||
sizeof(pgno_t) * 2)
|
||||
problem_add("entry", record_number, "extra idl space",
|
||||
"%" PRIuSIZE " < %" PRIuSIZE " (minor, not a trouble)",
|
||||
(number + 1) * sizeof(pgno_t), data->iov_len);
|
||||
|
Reference in New Issue
Block a user