fix compiler warning
This commit is contained in:
parent
0a1ca5e1cc
commit
8bf64aed58
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ static void syncLog_LogWriter(stasis_log_t * log,
|
||||||
|
|
||||||
// We can skip the fsync if we opened with O_SYNC, or if we're in softcommit mode, and not forcing for WAL.
|
// We can skip the fsync if we opened with O_SYNC, or if we're in softcommit mode, and not forcing for WAL.
|
||||||
|
|
||||||
if(sw->softcommit && mode == LOG_FORCE_WAL // soft commit mode; syncing for wal
|
if((sw->softcommit && mode == LOG_FORCE_WAL) // soft commit mode; syncing for wal
|
||||||
|| !(sw->softcommit || (sw->filemode & O_SYNC)) // neither soft commit nor opened with O_SYNC
|
|| !(sw->softcommit || (sw->filemode & O_SYNC)) // neither soft commit nor opened with O_SYNC
|
||||||
) {
|
) {
|
||||||
#ifdef HAVE_FDATASYNC
|
#ifdef HAVE_FDATASYNC
|
||||||
|
|
Loading…
Reference in a new issue