summaryrefslogtreecommitdiffstats
path: root/streaming/receiver.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-04-22 09:38:49 +0300
committerGitHub <noreply@github.com>2021-04-22 09:38:49 +0300
commit076822eb88e9e8adb97aa90f7132c3ac36587b9c (patch)
tree447bd0b2828eb15f0955ca2b75d971135124b0ed /streaming/receiver.c
parentd978a72e046d3c47b8d7a8524fa9992856d57a44 (diff)
Persist claim ids in local database for parent and children (#10993)
Diffstat (limited to 'streaming/receiver.c')
-rw-r--r--streaming/receiver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 119c6f9b05..8a3494ae1e 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -130,6 +130,10 @@ PARSER_RC streaming_claimed_id(char **words, void *user, PLUGINSD_ACTION *plugin
if (host->aclk_state.claimed_id)
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);
+
rrdhost_aclk_state_unlock(host);
rrdpush_claimed_id(host);