mdbx-chk: always skip key ordering checking to avoid MDBX_CORRUPTED when using custom comparators.

Change-Id: Ieb6ea4a1c36b0e661afc13da365505ffbb5d0b5e
This commit is contained in:
Leonid Yuriev 2020-07-23 11:33:05 +03:00
parent b6085afb5a
commit 3d31884c3b

View File

@ -1275,7 +1275,9 @@ int main(int argc, char *argv[]) {
}
saved_list = problems_push();
rc = mdbx_env_pgwalk(txn, pgvisitor, nullptr, ignore_wrong_order);
rc = mdbx_env_pgwalk(txn, pgvisitor, nullptr,
true /* always skip key ordering checking to avoid
MDBX_CORRUPTED when using custom comparators */);
traversal_problems = problems_pop(saved_list);
if (rc) {