From d150898abe26c5b9505dcad3be64856e091a1b7a Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sun, 26 Jul 1998 12:39:25 +0000 Subject: [PATCH] fixup storeMaintainSwapSpace counters --- src/store.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store.cc b/src/store.cc index 70cbb872e8..0046d82071 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.436 1998/07/25 17:48:33 wessels Exp $ + * $Id: store.cc,v 1.437 1998/07/26 06:39:25 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -600,6 +600,7 @@ storeMaintainSwapSpace(void *datanotused) for (m = store_list.tail; m; m = prev) { prev = m->prev; e = m->data; + scanned++; if (storeEntryLocked(e)) { /* * If there is a locked entry at the tail of the LRU list, @@ -617,9 +618,9 @@ storeMaintainSwapSpace(void *datanotused) expired++; storeRelease(e); } - if (expired > max_remove) + if (expired >= max_remove) break; - if (++scanned > max_scan) + if (scanned >= max_scan) break; } debug(20, 3) ("storeMaintainSwapSpace stats:\n"); -- 2.47.3