From: Sebastian Harl Date: Fri, 26 Mar 2010 20:50:42 +0000 (+0100) Subject: postgresql plugin: Don't abort read(), if a query's version doesn't match. X-Git-Tag: collectd-4.10.0~37 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5f73b7200633f3e72d1169d6f3f33e2ed8e1188f;p=collectd.git postgresql plugin: Don't abort read(), if a query's version doesn't match. There is no reason to skip unrelated queries because of that. --- diff --git a/src/postgresql.c b/src/postgresql.c index 0141b23e..9e916596 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -472,8 +472,8 @@ static int c_psql_read (user_data_t *ud) q = db->queries[i]; if ((0 != db->server_version) - && (udb_query_check_version (q, db->server_version) <= 0)) - return -1; + && (udb_query_check_version (q, db->server_version) <= 0)) + continue; c_psql_exec_query (db, q); }