mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
Bugfix: Define and use HAVE_FDATASYNC correctly outside LevelDB
This commit is contained in:
@@ -1025,7 +1025,7 @@ bool FileCommit(FILE *file)
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
#if defined(HAVE_FDATASYNC)
|
||||
#if HAVE_FDATASYNC
|
||||
if (fdatasync(fileno(file)) != 0 && errno != EINVAL) { // Ignore EINVAL for filesystems that don't support sync
|
||||
LogPrintf("%s: fdatasync failed: %d\n", __func__, errno);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user