diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-09-01 15:37:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 15:37:55 +0300 |
commit | 24006ed5c19cf7c398cf8a76e7bdce1f60c7e5a4 (patch) | |
tree | b7ef3ec6b5d999d3884b9af40c2b7a53eca8f027 /aclk/schema-wrappers | |
parent | beba227adf489a30e826c3922e4cb3635fb0b154 (diff) |
Reduce label memory (#15255)
Diffstat (limited to 'aclk/schema-wrappers')
-rw-r--r-- | aclk/schema-wrappers/node_info.h | 2 | ||||
-rw-r--r-- | aclk/schema-wrappers/schema_wrapper_utils.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/aclk/schema-wrappers/node_info.h b/aclk/schema-wrappers/node_info.h index de4ade78aa..4f57601dff 100644 --- a/aclk/schema-wrappers/node_info.h +++ b/aclk/schema-wrappers/node_info.h @@ -39,7 +39,7 @@ struct aclk_node_info { const char *custom_info; const char *machine_guid; - DICTIONARY *host_labels_ptr; + RRDLABELS *host_labels_ptr; struct machine_learning_info ml_info; }; diff --git a/aclk/schema-wrappers/schema_wrapper_utils.cc b/aclk/schema-wrappers/schema_wrapper_utils.cc index 6573e62997..96a4b9bf13 100644 --- a/aclk/schema-wrappers/schema_wrapper_utils.cc +++ b/aclk/schema-wrappers/schema_wrapper_utils.cc @@ -14,8 +14,8 @@ void set_timeval_from_google_timestamp(const google::protobuf::Timestamp &ts, st tv->tv_usec = ts.nanos()/1000; } -int label_add_to_map_callback(const char *name, const char *value, RRDLABEL_SRC ls, void *data) { - (void)ls; +int label_add_to_map_callback(const char *name, const char *value, RRDLABEL_SRC ls __maybe_unused, void *data) +{ auto map = (google::protobuf::Map<std::string, std::string> *)data; map->insert({name, value}); return 1; |