mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
mdbx: refine mdbx_reclaiming_detent() for MDBX_UTTERLY_NOSYNC.
Change-Id: I7847f2b375f3792927a55c90bb26d3220e71b576
This commit is contained in:
parent
94af9e02b0
commit
3d53f2ff2a
@ -1494,8 +1494,10 @@ static __hot MDBX_meta *mdbx_meta_head(const MDBX_env *env) {
|
||||
}
|
||||
|
||||
static __hot txnid_t mdbx_reclaiming_detent(const MDBX_env *env) {
|
||||
MDBX_meta *meta = mdbx_meta_mostrecent(prefer_noweak, env);
|
||||
return mdbx_meta_txnid_stable(env, meta);
|
||||
if (F_ISSET(env->me_flags, MDBX_UTTERLY_NOSYNC))
|
||||
return env->me_txn->mt_txnid - 1;
|
||||
|
||||
return mdbx_meta_txnid_stable(env, mdbx_meta_steady(env));
|
||||
}
|
||||
|
||||
static const char *mdbx_durable_str(const MDBX_meta *const meta) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user