]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Clean swap.state rotation was completely fucked up for most stores.. and
authorhno <>
Wed, 14 Nov 2001 01:11:19 +0000 (01:11 +0000)
committerhno <>
Wed, 14 Nov 2001 01:11:19 +0000 (01:11 +0000)
has been for a very long time (probably since modio merge). Only diskd
worked.

src/fs/aufs/store_dir_aufs.cc
src/fs/coss/store_dir_coss.cc
src/fs/diskd/store_dir_diskd.cc
src/fs/ufs/store_dir_ufs.cc

index 8d436669bfc14460370c4dbe57b16f389f575f7f..4db0718d8fdca99750e25876abd61326bebc8a33 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_aufs.cc,v 1.39 2001/10/24 07:45:37 hno Exp $
+ * $Id: store_dir_aufs.cc,v 1.40 2001/11/13 18:11:19 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -969,9 +969,6 @@ storeAufsDirWriteCleanStart(SwapDir * sd)
     state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
     state->outbuf_offset = 0;
     state->walker = sd->repl->WalkInit(sd->repl);
-#if !(defined(_SQUID_OS2_) || defined (_SQUID_CYGWIN_))
-    unlink(state->new);
-#endif
     unlink(state->cln);
     debug(20, 3) ("storeDirWriteCleanLogs: opened %s, FD %d\n",
        state->new, state->fd);
index 7a5f390c9b8f5543bebae0bd79db178d94c66bb0..39549e831aeecfe3b59a9ed3022387ebad17bc40 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_coss.cc,v 1.29 2001/08/16 00:16:20 hno Exp $
+ * $Id: store_dir_coss.cc,v 1.30 2001/11/13 18:11:20 hno Exp $
  *
  * DEBUG: section 81    Store COSS Directory Routines
  * AUTHOR: Eric Stern
@@ -494,7 +494,6 @@ storeCossDirWriteCleanStart(SwapDir * sd)
     state->cln = xstrdup(storeCossDirSwapLogFile(sd, ".last-clean"));
     state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
     state->outbuf_offset = 0;
-    unlink(state->new);
     unlink(state->cln);
     state->current = cs->index.tail;
     debug(20, 3) ("storeCOssDirWriteCleanLogs: opened %s, FD %d\n",
index b1fb78a18df61b0e77af09f4f373ae8bf3878229..b73f4721dff4272c4798b9a251f327af92c26b54 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_diskd.cc,v 1.57 2001/10/24 07:45:38 hno Exp $
+ * $Id: store_dir_diskd.cc,v 1.58 2001/11/13 18:11:20 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -1150,7 +1150,6 @@ storeDiskdDirWriteCleanStart(SwapDir * sd)
     state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
     state->outbuf_offset = 0;
     state->walker = sd->repl->WalkInit(sd->repl);
-    unlink(state->new);
     unlink(state->cln);
     state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
     if (state->fd < 0) {
index 5511aaa52718606eee4488b112b520189f70055e..bc7d066e5638c97021fd995317f167eb61eb8ba8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.38 2001/10/24 07:45:38 hno Exp $
+ * $Id: store_dir_ufs.cc,v 1.39 2001/11/13 18:11:21 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -967,9 +967,6 @@ storeUfsDirWriteCleanStart(SwapDir * sd)
     state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
     state->outbuf_offset = 0;
     state->walker = sd->repl->WalkInit(sd->repl);
-#if !(defined(_SQUID_OS2_) || defined (_SQUID_CYGWIN_))
-    unlink(state->new);
-#endif
     unlink(state->cln);
     debug(20, 3) ("storeDirWriteCleanLogs: opened %s, FD %d\n",
        state->new, state->fd);