@cryptotaxi247 / netdata-1 / commits / a6219dcbb

Fix host hop count reported to the cloud (#11768)

* Fix hop count * Remove the warning message

Stelios Fragkakis committed Nov 10, 2021 at 15:26 UTC a6219dcbbd857c35e4ee68bbc9dd8b3827a7f771
2 files changed +2 -3
aclk/aclk_rx_msgs.c
+1
@@ -321,6 +321,7 @@ void aclk_handle_new_cloud_msg(const char *message_type, const char *msg, size_t
321 netdata_mutex_lock(&host->receiver_lock);
322 query->data.node_update.live = (host->receiver != NULL);
323 netdata_mutex_unlock(&host->receiver_lock);
324 + query->data.node_update.hops = host->system_info->hops;
325 }
326 }
327
database/sqlite/sqlite_aclk_alert.c
+1 -3
@@ -582,10 +582,8 @@ void sql_process_queue_removed_alerts_to_aclk(struct aclk_database_worker_config
582 void sql_queue_removed_alerts_to_aclk(RRDHOST *host)
583 {
584 #ifdef ENABLE_NEW_CLOUD_PROTOCOL
585 - if (unlikely(!host->dbsync_worker)) {
586 - error("ACLK synchronization thread is not active for host %s when trying to queue removed alerts", host->hostname);
585 + if (unlikely(!host->dbsync_worker))
586 return;
588 - }
587
588 struct aclk_database_cmd cmd;
589 memset(&cmd, 0, sizeof(cmd));