From 1aa658f3dea92b6307704c74fee9330b83c52cf4 Mon Sep 17 00:00:00 2001 From: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> Date: Tue, 6 Feb 2024 21:53:33 +0200 Subject: [PATCH] Remove cleanup_destroyed_dictionaries call during shutdown (#16944) Remove cleanup_destroyed_dictionaries --- src/daemon/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/daemon/main.c b/src/daemon/main.c index e36b77f8cfe688..558bc2aa9ff423 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -461,12 +461,9 @@ void netdata_cleanup_and_exit(int ret, const char *action, const char *action_re for (size_t tier = 0; tier < storage_tiers; tier++) running += rrdeng_collectors_running(multidb_ctx[tier]); - if(running) { + if (running) { nd_log_limit_static_thread_var(erl, 1, 100 * USEC_PER_MS); - nd_log_limit(&erl, NDLS_DAEMON, NDLP_NOTICE, - "waiting for %zu collectors to finish", running); - // sleep_usec(100 * USEC_PER_MS); - cleanup_destroyed_dictionaries(); + nd_log_limit(&erl, NDLS_DAEMON, NDLP_NOTICE, "waiting for %zu collectors to finish", running); } count--; }