diff --git a/src/database/sqlite/sqlite_aclk.c b/src/database/sqlite/sqlite_aclk.c index 769a8a0bfe1bc3..b3f926e2f1dae2 100644 --- a/src/database/sqlite/sqlite_aclk.c +++ b/src/database/sqlite/sqlite_aclk.c @@ -509,6 +509,7 @@ static void aclk_synchronization(void *arg) } } while (opcode != ACLK_DATABASE_NOOP); } + config->initialized = false; if (!uv_timer_stop(&config->timer_req)) uv_close((uv_handle_t *)&config->timer_req, NULL); diff --git a/src/database/sqlite/sqlite_aclk_node.c b/src/database/sqlite/sqlite_aclk_node.c index 583e466428bc04..f5816465eb35a1 100644 --- a/src/database/sqlite/sqlite_aclk_node.c +++ b/src/database/sqlite/sqlite_aclk_node.c @@ -154,6 +154,9 @@ void aclk_check_node_info_and_collectors(void) continue; } + if (!wc->node_info_send_time && !wc->node_collectors_send) + continue; + if (unlikely(host_is_replicating(host))) { internal_error(true, "ACLK SYNC: Host %s is still replicating", rrdhost_hostname(host)); replicating++;