diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-08-02 17:16:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 17:16:19 +0300 |
commit | e22dff4b1f3eda456410bcadd99f0a48a6adae18 (patch) | |
tree | a33ba9fae739982786954bb7e173ea167ab97988 /database/sqlite/sqlite_aclk.c | |
parent | 5e78872a71c3f8854d30122e5f7444e37dc6f33b (diff) |
Load host labels for archived hosts (#13464)
* Add function to load labels from the database for a host and return a DICTIONARY
* Link labels to the newly created archived host
Diffstat (limited to 'database/sqlite/sqlite_aclk.c')
-rw-r--r-- | database/sqlite/sqlite_aclk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/database/sqlite/sqlite_aclk.c b/database/sqlite/sqlite_aclk.c index 8596c1d111..5164d4de5d 100644 --- a/database/sqlite/sqlite_aclk.c +++ b/database/sqlite/sqlite_aclk.c @@ -313,6 +313,9 @@ static int create_host_callback(void *data, int argc, char **argv, char **column , system_info , 1 ); + if (likely(host)) + host->host_labels = sql_load_host_labels((uuid_t *)argv[IDX_HOST_ID]); + #ifdef NETDATA_INTERNAL_CHECKS char node_str[UUID_STR_LEN] = "<none>"; if (likely(host->node_id)) |