From: Florian Forster Date: Fri, 21 Nov 2008 23:58:36 +0000 (+0100) Subject: src/configfile.c: Dispatch the `Chain' blocks to fc_configure. X-Git-Tag: collectd-4.6.0~156^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a0d78fa7ea83b9913f5aa0146009f06846de6d1;p=collectd.git src/configfile.c: Dispatch the `Chain' blocks to fc_configure. --- diff --git a/src/configfile.c b/src/configfile.c index f9c20fc3..bdb63a9a 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -30,6 +30,7 @@ #include "configfile.h" #include "types_list.h" #include "utils_threshold.h" +#include "filter_chain.h" #if HAVE_WORDEXP_H # include @@ -340,6 +341,8 @@ static int dispatch_block (oconfig_item_t *ci) return (dispatch_block_plugin (ci)); else if (strcasecmp (ci->key, "Threshold") == 0) return (ut_config (ci)); + else if (strcasecmp (ci->key, "Chain") == 0) + return (fc_configure (ci)); return (0); } diff --git a/src/plugin.c b/src/plugin.c index f222e3ac..b0043362 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -705,7 +705,7 @@ int plugin_write (const char *plugin, /* {{{ */ int success = 0; int failure = 0; - le = llist_head (list_write); + le = llist_head (list_flush); while (le != NULL) { callback = le->value; @@ -725,7 +725,7 @@ int plugin_write (const char *plugin, /* {{{ */ } else /* plugin != NULL */ { - le = llist_head (list_write); + le = llist_head (list_flush); while (le != NULL) { if (strcasecmp (plugin, le->key) == 0)