Revision: 14478
Author: adrian.chadd
Date: Tue Mar 23 21:09:29 2010
Log: Attempt to fix Issue #91 - don't close/open the swaplog files during
reconfigure. This causes the logfiles to be re-opened whilst the
temporary swaplog is being written to; and this causes all manner of
silly behaviour filling up the storedir disk with infinitely-growing
swaplog files.


http://code.google.com/p/lusca-cache/source/detail?r=14478

Modified:
 /branches/LUSCA_HEAD/src/main.c

=======================================
--- /branches/LUSCA_HEAD/src/main.c     Thu Oct 15 16:08:35 2009
+++ /branches/LUSCA_HEAD/src/main.c     Tue Mar 23 21:09:29 2010
@@ -396,7 +396,8 @@
     authenticateShutdown();
     externalAclShutdown();
     refreshCheckShutdown();
-    storeDirCloseSwapLogs();
+    if (! store_dirs_rebuilding)
+        storeDirCloseSwapLogs();
     storeLogClose();
     accessLogClose();
     useragentLogClose();
@@ -472,7 +473,8 @@
 #endif
     serverConnectionsOpen();
     neighbors_init();
-    storeDirOpenSwapLogs();
+    if (! store_dirs_rebuilding)
+        storeDirOpenSwapLogs();
     mimeInit(Config.mimeTablePathname);
     if (Config.onoff.announce) {
        if (!eventFind(start_announce, NULL))

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to