mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:04:12 +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
|
||||
* see http://www.spinics.net/lists/linux-ext4/msg33714.html */
|
||||
#if _POSIX_C_SOURCE >= 199309L || _XOPEN_SOURCE >= 500 || \
|
||||
defined(_POSIX_SYNCHRONIZED_IO)
|
||||
#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0
|
||||
if (!filesize_changed && fdatasync(fd) == 0)
|
||||
return MDBX_SUCCESS;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user