From: wessels <> Date: Wed, 5 Nov 1997 06:29:35 +0000 (+0000) Subject: Fixed storeDirSwapLog problems upon reconfigure X-Git-Tag: SQUID_3_0_PRE1~4572 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2db68ce586f284e1593402b86152a88efda2ce38;p=thirdparty%2Fsquid.git Fixed storeDirSwapLog problems upon reconfigure --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 44d1b25fe1..f1bee2a5ad 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.228 1997/10/28 21:53:35 wessels Exp $ + * $Id: cache_cf.cc,v 1.229 1997/11/04 23:29:35 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -476,7 +476,6 @@ parse_cachedir(struct _cacheSwap *swap) xfree(swap->swapDirs); swap->swapDirs = tmp; } - debug(20, 1) ("Creating Swap Dir #%d in %s\n", swap->n_configured + 1, path); tmp = swap->swapDirs + swap->n_configured; tmp->path = xstrdup(path); tmp->max_size = size; diff --git a/src/main.cc b/src/main.cc index aa230fff16..08ce9dd0d6 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.187 1997/11/03 20:04:44 wessels Exp $ + * $Id: main.cc,v 1.188 1997/11/04 23:29:36 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -462,6 +462,7 @@ mainReconfigure(void) { debug(1, 0) ("Restarting Squid Cache (version %s)...\n", version_string); /* Already called serverConnectionsClose and ipcacheShutdownServers() */ + storeDirCloseSwapLogs(); parseConfigFile(ConfigFile); _db_init(Config.Log.log, Config.debugOptions); ipcache_restart(); /* clear stuck entries */ @@ -471,6 +472,7 @@ mainReconfigure(void) serverConnectionsOpen(); if (theOutIcpConnection >= 0 && (!Config2.Accel.on || Config.onoff.accel_with_proxy)) neighbors_open(theOutIcpConnection); + storeDirOpenSwapLogs(); debug(1, 0) ("Ready to serve requests.\n"); }