mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-06-22 07:48:53 +00:00
mdbx: fix turn_for_recovery()
for possibility of meta-pages clashing after turn to a particular meta-page.
This commit is contained in:
parent
3092078709
commit
11a5c50591
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user