diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2021-04-22 09:38:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 09:38:49 +0300 |
commit | 076822eb88e9e8adb97aa90f7132c3ac36587b9c (patch) | |
tree | 447bd0b2828eb15f0955ca2b75d971135124b0ed /claim | |
parent | d978a72e046d3c47b8d7a8524fa9992856d57a44 (diff) |
Persist claim ids in local database for parent and children (#10993)
Diffstat (limited to 'claim')
-rw-r--r-- | claim/claim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/claim/claim.c b/claim/claim.c index 9a3660f9e6..bce231a9bc 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; + + if (likely(claimed_id)) + store_claim_id(&localhost->host_uuid, &uuid); + rrdhost_aclk_state_unlock(localhost); if (!claimed_id) { info("Unable to load '%s', setting state to AGENT_UNCLAIMED", filename); |