mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:14:14 +08:00
mdbx++: don't use obsolete MDBX_MAPASYNC.
Change-Id: I328772a36d14a7593f3b9ee31796fb33d30de7b0
This commit is contained in:
parent
cd9ac17d59
commit
883c9f960c
@ -1061,7 +1061,8 @@ __cold MDBX_env_flags_t env_ref::operate_parameters::make_flags(
|
||||
flags |= MDBX_NOMETASYNC;
|
||||
break;
|
||||
case env_ref::durability::lazy_weak_tail:
|
||||
flags |= (flags & MDBX_WRITEMAP) ? MDBX_MAPASYNC : MDBX_SAFE_NOSYNC;
|
||||
static_assert(MDBX_MAPASYNC == MDBX_SAFE_NOSYNC, "WTF? Obsolete C API?");
|
||||
flags |= MDBX_SAFE_NOSYNC;
|
||||
break;
|
||||
case env_ref::durability::whole_fragile:
|
||||
flags |= MDBX_UTTERLY_NOSYNC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user