projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
e432485
712367f
)
Merge pull request #2725 from RafaelMarinheiro/fix_grpc_query_values
author
Matthias Runge
<mrunge@redhat.com>
Mon, 1 Jul 2019 07:25:33 +0000
(09:25 +0200)
committer
GitHub
<noreply@github.com>
Mon, 1 Jul 2019 07:25:33 +0000
(09:25 +0200)
utils_cache: fix pointer reference and meta_data ingestion
1
2
src/daemon/utils_cache.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
src/daemon/utils_cache.c
index
c53e5d1
,
44b8840
..
e63a20e
---
1
/
src/daemon/utils_cache.c
---
2
/
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.");