summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2020-12-18 10:35:23 +0200
committerGitHub <noreply@github.com>2020-12-18 10:35:23 +0200
commita45b2f73b59aac05ed7d60367371b134e8bcb001 (patch)
treefc6c6b51fb6e31a44ef3239793bc685508fbf177
parent876295c4b31d63bf34af80da41e4da2b718f381b (diff)
Fix locking after an ACLK on_connect failure (#10401)
-rw-r--r--aclk/aclk_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aclk/aclk_query.c b/aclk/aclk_query.c
index 09934754e3..7ab534f16b 100644
--- a/aclk/aclk_query.c
+++ b/aclk/aclk_query.c
@@ -750,7 +750,7 @@ void *aclk_query_main_thread(void *ptr)
rrdhost_aclk_state_lock(localhost);
if (unlikely(localhost->aclk_state.metadata == ACLK_METADATA_REQUIRED)) {
if (unlikely(aclk_queue_query("on_connect", localhost, NULL, NULL, 0, 1, ACLK_CMD_ONCONNECT))) {
- ACLK_SHARED_STATE_UNLOCK;
+ rrdhost_aclk_state_unlock(localhost);
errno = 0;
error("ACLK failed to queue on_connect command");
sleep(1);