src/filter_chain.c: Implement the default behavior.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 23 Nov 2008 11:49:25 +0000 (12:49 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 23 Nov 2008 11:49:25 +0000 (12:49 +0100)
If no <Chain> is defined, send all values to all write plugins.

src/filter_chain.c

index e51e07e..b73d6e1 100644 (file)
@@ -967,9 +967,8 @@ int fc_process (const data_set_t *ds, value_list_t *vl) /* {{{ */
   if (chain != NULL)
     return (fc_process_chain (ds, vl, chain));
 
-  ERROR ("fc_process: TODO: Implement default behavior!");
-
-  return (0);
+  return (fc_bit_write_invoke (ds, vl,
+        /* meta = */ NULL, /* user_data = */ NULL));
 } /* }}} int fc_process */
 
 int fc_configure (const oconfig_item_t *ci) /* {{{ */