From dc2ccfe5eab7dc35165d8c8718d32d24d208022f Mon Sep 17 00:00:00 2001 From: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> Date: Mon, 26 Apr 2021 14:23:02 +0300 Subject: Store null claim id in the database for non claimed children (#11036) --- streaming/receiver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'streaming/receiver.c') 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); -- cgit v1.2.3