From: wessels <> Date: Fri, 26 Jan 2007 03:26:11 +0000 (+0000) Subject: unlinkdClose() should be called after (not before) Store::Root().sync() X-Git-Tag: SQUID_3_0_PRE6~152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d075ba0a04d08da079d9d7760b4e6c7d31f5957;p=thirdparty%2Fsquid.git unlinkdClose() should be called after (not before) Store::Root().sync() --- diff --git a/src/main.cc b/src/main.cc index 260cf201fe..bf62f0f56f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.439 2006/12/21 00:34:51 hno Exp $ + * $Id: main.cc,v 1.440 2007/01/25 20:26:11 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1637,16 +1637,16 @@ SquidShutdown() #endif authenticateShutdown(); -#if USE_UNLINKD - - unlinkdClose(); -#endif #if USE_WIN32_SERVICE WIN32_svcstatusupdate(SERVICE_STOP_PENDING, 10000); #endif Store::Root().sync(); /* Flush pending object writes/unlinks */ +#if USE_UNLINKD + + unlinkdClose(); /* after sync/flush */ +#endif storeDirWriteCleanLogs(0); PrintRusage(); dumpMallocStats();