From: Matthias Runge Date: Mon, 1 Jul 2019 07:25:33 +0000 (+0200) Subject: Merge pull request #2725 from RafaelMarinheiro/fix_grpc_query_values X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9f8dc5668faf5432dcb1430017bd7a1c383c2453;p=collectd.git Merge pull request #2725 from RafaelMarinheiro/fix_grpc_query_values utils_cache: fix pointer reference and meta_data ingestion --- 9f8dc5668faf5432dcb1430017bd7a1c383c2453 diff --cc src/daemon/utils_cache.c index c53e5d14,44b88407..e63a20e5 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@@ -201,8 -201,12 +201,12 @@@ static int uc_insert(const data_set_t * ce->last_time = vl->time; ce->last_update = cdtime(); ce->interval = vl->interval; - ce->state = STATE_OKAY; + ce->state = STATE_UNKNOWN; + if (vl->meta != NULL) { + ce->meta = meta_data_clone(vl->meta); + } + if (c_avl_insert(cache_tree, key_copy, ce) != 0) { sfree(key_copy); ERROR("uc_insert: c_avl_insert failed.");