Skip to content

Commit

Permalink
Remove cleanup_destroyed_dictionaries call during shutdown (netdata#1…
Browse files Browse the repository at this point in the history
…6944)

Remove cleanup_destroyed_dictionaries
  • Loading branch information
stelfrag authored Feb 6, 2024
1 parent a3a3982 commit 1aa658f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/daemon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
}
Expand Down

0 comments on commit 1aa658f

Please sign in to comment.