summaryrefslogtreecommitdiffstats
path: root/web/api/web_api_v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/web_api_v1.c')
-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++;
}