From d5f727637c50a123141810dd076197b9d6cb2692 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 12 Jan 2017 10:46:46 +1100 Subject: [PATCH] Check for readcount in ageing as well. --- src/stratifier.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 9daa03e3..29e9b7b8 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1130,6 +1130,8 @@ static void add_base(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb, bool *new_bl break; if (wb == tmp) continue; + if (wb->readcount) + continue; /* Age old workbases older than 10 minutes old */ if (tmp->gentime.tv_sec < wb->gentime.tv_sec - 600) { HASH_DEL(sdata->workbases, tmp);