mdbx: minor refine/fix MDBX_ENODATA for compatibility.

Related to https://github.com/erthink/libmdbx/issues/243
This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2021-12-02 17:25:27 +03:00
parent c2cab7a6a8
commit d96bc98244
2 changed files with 6 additions and 2 deletions

View File

@@ -1174,6 +1174,8 @@ bool testcase::speculum_verify() {
rc = false;
}
err = mdbx_cursor_get(cursor, &akey, &avalue, MDBX_GET_CURRENT);
if (err == MDBX_SUCCESS)
err = mdbx_cursor_get(cursor, &akey, &avalue, MDBX_NEXT);
if (err != MDBX_ENODATA) {
log_error("unexpected %d for MDBX_GET_CURRENT at EOF", err);
rc = false;