projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
799fe05
)
core: Set plugin name in context when plugin is autoloaded
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 4 Jul 2018 05:43:10 +0000
(12:43 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 4 Jul 2018 05:43:10 +0000
(12:43 +0700)
src/daemon/configfile.c
patch
|
blob
|
history
diff --git
a/src/daemon/configfile.c
b/src/daemon/configfile.c
index
d903800
..
8750bef
100644
(file)
--- a/
src/daemon/configfile.c
+++ b/
src/daemon/configfile.c
@@
-381,6
+381,7
@@
static int dispatch_block_plugin(oconfig_item_t *ci) {
/* default to the global interval set before loading this plugin */
ctx.interval = cf_get_default_interval();
+ ctx.name = strdup(name);
old_ctx = plugin_set_ctx(ctx);
status = plugin_load(name, /* flags = */ false);