@cryptotaxi247 / netdata-1 / commits / 3a1625f48

Fix internal registry (#9434)

Move registry to do integration with spawn server.

thiagoftsm committed Jun 29, 2020 at 11:21 UTC 3a1625f480b6a48c8fcd6e99f557b7d41bafcb59
2 files changed +3 -1
daemon/main.c
+2
@@ -1385,6 +1385,8 @@ int main(int argc, char **argv) {
1385
1386 netdata_threads_init_after_fork((size_t)config_get_number(CONFIG_SECTION_GLOBAL, "pthread stack size", (long)default_stacksize));
1387
1388 + // initialyze internal registry
1389 + registry_init();
1390 // fork the spawn server
1391 spawn_init();
1392 /*
database/rrdhost.c
+1 -1
@@ -566,7 +566,7 @@ int rrd_init(char *hostname, struct rrdhost_system_info *system_info) {
566 gap_when_lost_iterations_above = 1;
567
568 health_init();
569 - registry_init();
569 +
570 rrdpush_init();
571
572 debug(D_RRDHOST, "Initializing localhost with hostname '%s'", hostname);