summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-04-26 14:23:02 +0300
committerGitHub <noreply@github.com>2021-04-26 14:23:02 +0300
commitdc2ccfe5eab7dc35165d8c8718d32d24d208022f (patch)
treeafecc42b8789de5e7372af3b8578601372c990f5 /streaming
parent055d32dc1faa27d03aa91b6b1e25ad0da622c92a (diff)
Store null claim id in the database for non claimed children (#11036)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 8a3494ae1e..11191f3c78 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -131,8 +131,7 @@ PARSER_RC streaming_claimed_id(char **words, void *user, PLUGINSD_ACTION *plugin
freez(host->aclk_state.claimed_id);
host->aclk_state.claimed_id = strcmp(words[2], "NULL") ? strdupz(words[2]) : NULL;
- if (likely(host->aclk_state.claimed_id))
- store_claim_id(&host->host_uuid, &uuid);
+ store_claim_id(&host->host_uuid, host->aclk_state.claimed_id ? &uuid : NULL);
rrdhost_aclk_state_unlock(host);