summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2020-11-26 17:26:01 +0100
committerGitHub <noreply@github.com>2020-11-26 17:26:01 +0100
commitf1db235a36d85f81c5a19a7087567405771874f7 (patch)
treef99084d252e0af0496bf4776fa2c118f15dbee1a /web
parent4f867a58e5287e54aa5ecae023868615cafb9f93 (diff)
ACLK Child Availability Messages (#9918)
* new ACLK messages for Claiming MVP1
Diffstat (limited to 'web')
-rw-r--r--web/api/web_api_v1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c
index 702778547c..71027552f2 100644
--- a/web/api/web_api_v1.c
+++ b/web/api/web_api_v1.c
@@ -841,12 +841,12 @@ static inline void web_client_api_request_v1_info_mirrored_hosts(BUFFER *wb) {
(host->receiver || host == localhost) ? "true" : "false");
netdata_mutex_unlock(&host->receiver_lock);
- netdata_mutex_lock(&host->claimed_id_lock);
- if (host->claimed_id)
- buffer_sprintf(wb, "\"%s\" }", host->claimed_id);
+ rrdhost_aclk_state_lock(host);
+ if (host->aclk_state.claimed_id)
+ buffer_sprintf(wb, "\"%s\" }", host->aclk_state.claimed_id);
else
buffer_strcat(wb, "null }");
- netdata_mutex_unlock(&host->claimed_id_lock);
+ rrdhost_aclk_state_unlock(host);
count++;
}