projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b2796d
)
daemon: Fix regression caused by #3217
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sat, 23 Nov 2019 14:54:50 +0000
(21:54 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sat, 23 Nov 2019 14:54:50 +0000
(21:54 +0700)
Empty <Plugin> section can be used to autoload plugin,
which does not supports configuration callback.
src/daemon/configfile.c
patch
|
blob
|
history
diff --git
a/src/daemon/configfile.c
b/src/daemon/configfile.c
index
3a7364e
..
61fa901
100644
(file)
--- a/
src/daemon/configfile.c
+++ b/
src/daemon/configfile.c
@@
-404,6
+404,10
@@
static int dispatch_block_plugin(oconfig_item_t *ci) {
}
}
+ /* Try to be backward-compatible with previous versions */
+ if (ci->children_num == 0)
+ return 0;
+
/* Hm, no complex plugin found. Dispatch the values one by one */
cf_callback_t *cf_cb = cf_search(plugin_name);
if (cf_cb == NULL) {