From 4d075ba0a04d08da079d9d7760b4e6c7d31f5957 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 26 Jan 2007 03:26:11 +0000 Subject: [PATCH] unlinkdClose() should be called after (not before) Store::Root().sync() --- src/main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.47.3