mdbx: fix turn_for_recovery() for possibility of meta-pages clashing after turn to a particular meta-page.

This commit is contained in:
Leonid Yuriev 2021-10-13 00:56:51 +03:00
parent 3092078709
commit 11a5c50591

View File

@ -12254,7 +12254,7 @@ __cold int mdbx_env_turn_for_recovery(MDBX_env *env, unsigned target) {
} else {
txnid_t txnid = mdbx_meta_txnid_stable(env, &meta);
if (new_txnid <= txnid)
safe64_txnid_next(new_txnid);
new_txnid = safe64_txnid_next(txnid);
}
}