projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f8dbc
)
write_http plugin: Don't register a flush callback unconditionally.
author
Florian Forster
<octo@collectd.org>
Wed, 28 Sep 2016 15:53:34 +0000
(17:53 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 28 Sep 2016 15:53:34 +0000
(17:53 +0200)
Fixes: #1955
src/write_http.c
patch
|
blob
|
history
diff --git
a/src/write_http.c
b/src/write_http.c
index
41615d3
..
4a5818c
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-817,13
+817,10
@@
static int wh_config_node (oconfig_item_t *ci) /* {{{ */
callback_name, cb->location);
user_data_t user_data = {
- .data = cb
+ .data = cb,
+ .free_func = wh_callback_free,
};
- plugin_register_flush (callback_name, wh_flush, &user_data);
-
- user_data.free_func = wh_callback_free;
-
if (cb->send_metrics)
{
plugin_register_write (callback_name, wh_write, &user_data);