From 5acfdfcc76471aba93881255a4aa4ab94f2ece23 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 28 May 2020 08:33:57 +0200 Subject: [PATCH] flow/manager: fix management tasks not running Fix tasks not running on the first manager, even if there is just a single manager. --- src/flow-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow-manager.c b/src/flow-manager.c index 150f30144e..3b3aa3b58a 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -769,7 +769,7 @@ static TmEcode FlowManager(ThreadVars *th_v, void *thread_data) SCLogDebug("ts %" PRIdMAX "", (intmax_t)ts.tv_sec); /* see if we still have enough spare flows */ - if (ftd->instance == 1) + if (ftd->instance == 0) FlowUpdateSpareFlows(); /* try to time out flows */ @@ -777,7 +777,7 @@ static TmEcode FlowManager(ThreadVars *th_v, void *thread_data) FlowTimeoutHash(&ts, 0 /* check all */, ftd->min, ftd->max, &counters); - if (ftd->instance == 1) { + if (ftd->instance == 0) { DefragTimeoutHash(&ts); //uint32_t hosts_pruned = HostTimeoutHash(&ts);