From 94ff602d444b140c1d53ad1de7086b8df95fd5b7 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sun, 28 May 2000 23:00:13 +0000 Subject: [PATCH] DW: - Somebody "moved" store_pages_max, store_swap_high, and store_swap_low to globals.c, but didn't delete them from store.c. This caused a divide by zero bug in storeDiskdDirMaintain. --- src/globals.h | 8 ++++---- src/store.cc | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/globals.h b/src/globals.h index 7636130a3a..93c5b1ae3d 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,6 +1,6 @@ /* - * $Id: globals.h,v 1.89 2000/05/12 00:29:07 wessels Exp $ + * $Id: globals.h,v 1.90 2000/05/28 17:00:13 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -150,7 +150,7 @@ extern request_flags null_request_flags; extern int store_open_disk_fd; /* 0 */ extern const char *SwapDirType[]; extern storefs_entry_t *storefs_list; /* NULL */ -extern int store_swap_low; -extern int store_swap_high; -extern int store_pages_max; +extern int store_swap_low; /* 0 */ +extern int store_swap_high; /* 0 */ +extern int store_pages_max; /* 0 */ extern size_t store_maxobjsize; diff --git a/src/store.cc b/src/store.cc index 11fc6a7405..472bf2c49c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.523 2000/05/16 07:06:06 wessels Exp $ + * $Id: store.cc,v 1.524 2000/05/28 17:00:13 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -97,9 +97,6 @@ static EVH storeLateRelease; #else static dlink_list inmem_list; #endif -static int store_pages_max = 0; -static int store_swap_high = 0; -static int store_swap_low = 0; static Stack LateReleaseStack; #if URL_CHECKSUM_DEBUG -- 2.47.3