mdbx: mdbx_chk - empty freedb record isn't an error.

Change-Id: Ic3e2d2d266b23e5bdd4f5ec5062cfb9c07f162c7
This commit is contained in:
Leo Yuriev 2016-02-09 09:26:26 +03:00
parent c9642d1082
commit a0435cfd71

View File

@ -320,7 +320,7 @@ static int handle_freedb(size_t record_number, MDB_val *key, MDB_val* data) {
problem_add("entry", record_number, "wrong idl size", "%zu", data->mv_size);
else {
number = *iptr++;
if (number <= 0 || number >= MDB_IDL_UM_MAX)
if (number >= MDB_IDL_UM_MAX)
problem_add("entry", record_number, "wrong idl length", "%zi", number);
else if ((number + 1) * sizeof(size_t) != data->mv_size)
problem_add("entry", record_number, "mismatch idl length", "%zi != %zu",