diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-01-17 17:08:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 17:08:16 +0200 |
commit | 6be264d62788b1b50109dc1f2a0cb6f622cfb804 (patch) | |
tree | f53e98af92e751c596e7123e8ced40bf3f3c0478 /claim/claim.c | |
parent | 02f4b6cba721e871b7955780c595257dc7fa1f0f (diff) |
Store host and claim info in sqlite as soon as possible (#14263)
* store host and claim info as soon as possible
* no need to set the flag
* check for metasync_worker.loop
Diffstat (limited to 'claim/claim.c')
-rw-r--r-- | claim/claim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/claim/claim.c b/claim/claim.c index cc5db81dea..9fe156d211 100644 --- a/claim/claim.c +++ b/claim/claim.c @@ -170,10 +170,9 @@ void load_claiming_state(void) } invalidate_node_instances(&localhost->host_uuid, claimed_id ? &uuid : NULL); + metaqueue_store_claim_id(&localhost->host_uuid, claimed_id ? &uuid : NULL); rrdhost_aclk_state_unlock(localhost); - rrdhost_flag_set(localhost, RRDHOST_FLAG_METADATA_CLAIMID | RRDHOST_FLAG_METADATA_UPDATE); - if (!claimed_id) { info("Unable to load '%s', setting state to AGENT_UNCLAIMED", filename); return; |