mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-21 08:19:27 +08:00
mdbx: fix turn_for_recovery()
for possibility of meta-pages clashing after turn to a particular meta-page.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user