From: Victor Julien Date: Thu, 28 May 2020 06:33:57 +0000 (+0200) Subject: flow/manager: fix management tasks not running X-Git-Tag: suricata-6.0.0-beta1~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5acfdfcc76471aba93881255a4aa4ab94f2ece23;p=thirdparty%2Fsuricata.git flow/manager: fix management tasks not running Fix tasks not running on the first manager, even if there is just a single manager. --- 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);