From 8bf64aed589bcdf66a1cd550e89cc2a8554dd223 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Mon, 5 Oct 2009 20:48:04 +0000 Subject: [PATCH] fix compiler warning --- src/stasis/logger/safeWrites.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stasis/logger/safeWrites.c b/src/stasis/logger/safeWrites.c index 9064208..da5b66b 100644 --- a/src/stasis/logger/safeWrites.c +++ b/src/stasis/logger/safeWrites.c @@ -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. - 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 ) { #ifdef HAVE_FDATASYNC