projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781f1ec
)
postgresql plugin: Fixed config key check for <Writer> block.
author
Sebastian Harl
<sh@tokkee.org>
Wed, 24 Oct 2012 16:33:28 +0000
(18:33 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Wed, 24 Oct 2012 16:33:28 +0000
(18:33 +0200)
A missing "else" caused incorrect “Ignoring unknown config key "Statement"”
warning messages.
src/postgresql.c
patch
|
blob
|
history
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
9aa7a67
..
594fa32
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-992,7
+992,7
@@
static int c_psql_config_writer (oconfig_item_t *ci)
if (strcasecmp ("Statement", c->key) == 0)
status = cf_util_get_string (c, &writer->statement);
- if (strcasecmp ("StoreRates", c->key) == 0)
+
else
if (strcasecmp ("StoreRates", c->key) == 0)
status = cf_util_get_boolean (c, &writer->store_rates);
else
log_warn ("Ignoring unknown config key \"%s\".", c->key);