mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 10:38:20 +08:00
mdbx: checking only _POSIX_SYNCHRONIZED_IO for fdatasync (musl).
This commit is contained in:
parent
cca2c91058
commit
9f410597df
@ -685,8 +685,7 @@ int mdbx_filesync(mdbx_filehandle_t fd, bool filesize_changed) {
|
|||||||
*
|
*
|
||||||
* For more info about of a corresponding fdatasync() bug
|
* For more info about of a corresponding fdatasync() bug
|
||||||
* see http://www.spinics.net/lists/linux-ext4/msg33714.html */
|
* see http://www.spinics.net/lists/linux-ext4/msg33714.html */
|
||||||
#if _POSIX_C_SOURCE >= 199309L || _XOPEN_SOURCE >= 500 || \
|
#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0
|
||||||
defined(_POSIX_SYNCHRONIZED_IO)
|
|
||||||
if (!filesize_changed && fdatasync(fd) == 0)
|
if (!filesize_changed && fdatasync(fd) == 0)
|
||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user