diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-09-16 16:00:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-16 16:00:42 +0300 |
commit | 11de4e4ab77177bc1a4f9b6358151adf525f2ca0 (patch) | |
tree | 96cc31e5e41103e85f7935eb7bb04b571668c246 /libnetdata | |
parent | 638d9b064d0f7818a3672f26163413efff9f30a3 (diff) |
Functions: allow collectors to be restarted (#15983)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/required_dummies.h | 1 | ||||
-rw-r--r-- | libnetdata/threads/threads.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libnetdata/required_dummies.h b/libnetdata/required_dummies.h index 5a0d4e0502..1ffe1e9e53 100644 --- a/libnetdata/required_dummies.h +++ b/libnetdata/required_dummies.h @@ -37,6 +37,7 @@ void rrdset_thread_rda_free(void){}; void sender_thread_buffer_free(void){}; void query_target_free(void){}; void service_exits(void){}; +void rrd_collector_finished(void){}; // required by get_system_cpus() char *netdata_configured_host_prefix = ""; diff --git a/libnetdata/threads/threads.c b/libnetdata/threads/threads.c index ae3c7106d9..a26eba7341 100644 --- a/libnetdata/threads/threads.c +++ b/libnetdata/threads/threads.c @@ -178,6 +178,7 @@ void rrdset_thread_rda_free(void); void sender_thread_buffer_free(void); void query_target_free(void); void service_exits(void); +void rrd_collector_finished(void); static void thread_cleanup(void *ptr) { if(netdata_thread != ptr) { @@ -188,6 +189,7 @@ static void thread_cleanup(void *ptr) { if(!(netdata_thread->options & NETDATA_THREAD_OPTION_DONT_LOG_CLEANUP)) netdata_log_info("thread with task id %d finished", gettid()); + rrd_collector_finished(); sender_thread_buffer_free(); rrdset_thread_rda_free(); query_target_free(); |