mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:34:13 +08:00
mdbx: fix merge_sync_flags() to preserve MDBX_UTTERLY_NOSYNC.
Change-Id: I59dbd1ef8ac1747dd20565ff444e4feb5d0e0e71
This commit is contained in:
parent
f6850f5367
commit
fc965c57ac
@ -10286,7 +10286,8 @@ static uint32_t merge_sync_flags(const uint32_t a, const uint32_t b) {
|
||||
|
||||
/* convert MDBX_DEPRECATED_MAPASYNC to MDBX_SAFE_NOSYNC */
|
||||
if ((r & (MDBX_WRITEMAP | MDBX_DEPRECATED_MAPASYNC)) ==
|
||||
(MDBX_WRITEMAP | MDBX_DEPRECATED_MAPASYNC))
|
||||
(MDBX_WRITEMAP | MDBX_DEPRECATED_MAPASYNC) &&
|
||||
!F_ISSET(r, MDBX_UTTERLY_NOSYNC))
|
||||
r = (r - MDBX_DEPRECATED_MAPASYNC) | MDBX_SAFE_NOSYNC;
|
||||
|
||||
/* force MDBX_NOMETASYNC if MDBX_SAFE_NOSYNC enabled */
|
||||
|
Loading…
x
Reference in New Issue
Block a user