]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
unlinkdClose() should be called after (not before) Store::Root().sync()
authorwessels <>
Fri, 26 Jan 2007 03:26:11 +0000 (03:26 +0000)
committerwessels <>
Fri, 26 Jan 2007 03:26:11 +0000 (03:26 +0000)
src/main.cc

index 260cf201fe71c7f2e1a83ac91b5b470dd6c4eb32..bf62f0f56faa3c20c8151523591ff7a071e66ab3 100644 (file)
@@ -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();