summaryrefslogtreecommitdiffstats
path: root/claim/claim.c
diff options
context:
space:
mode:
Diffstat (limited to 'claim/claim.c')
-rw-r--r--claim/claim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/claim/claim.c b/claim/claim.c
index 9a3660f9e..ce3f0803d 100644
--- a/claim/claim.c
+++ b/claim/claim.c
@@ -164,6 +164,10 @@ void load_claiming_state(void)
claimed_id = NULL;
}
localhost->aclk_state.claimed_id = claimed_id;
+
+ invalidate_node_instances(&localhost->host_uuid, claimed_id ? &uuid : NULL);
+ store_claim_id(&localhost->host_uuid, claimed_id ? &uuid : NULL);
+
rrdhost_aclk_state_unlock(localhost);
if (!claimed_id) {
info("Unable to load '%s', setting state to AGENT_UNCLAIMED", filename);