From: wessels <> Date: Tue, 7 Jul 1998 01:43:21 +0000 (+0000) Subject: maybe call fsync() before close X-Git-Tag: SQUID_3_0_PRE1~3107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42f99d0d47982b36e48520cac9aa31d7411d6393;p=thirdparty%2Fsquid.git maybe call fsync() before close --- diff --git a/src/disk.cc b/src/disk.cc index 8625c0e64d..c57ac359a2 100644 --- a/src/disk.cc +++ b/src/disk.cc @@ -1,6 +1,6 @@ /* - * $Id: disk.cc,v 1.118 1998/06/03 15:52:18 rousskov Exp $ + * $Id: disk.cc,v 1.119 1998/07/06 19:43:21 wessels Exp $ * * DEBUG: section 6 Disk I/O Routines * AUTHOR: Harvest Derived @@ -218,6 +218,9 @@ file_close(int fd) #if USE_ASYNC_IO aioClose(fd); #else +#if CALL_FSYNC_BEFORE_CLOSE + fsync(fd); +#endif close(fd); #endif debug(6, F->flags.close_request ? 2 : 5)