From c48a0d9b8b6d777b180144b3ffa23a0f320cb0ae Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 27 Jul 2014 21:33:23 +1000 Subject: [PATCH] ckdb - correct field count, fix dup poolstats_fill --- src/ckdb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index a83941ab..b94c4246 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -4267,7 +4267,7 @@ static bool poolstats_fill(PGconn *conn) POOLSTATS *row; char *field; char *sel; - int fields = 7; + int fields = 8; bool ok; LOGDEBUG("%s(): select", __func__); @@ -4802,9 +4802,7 @@ static bool getdata() goto matane; if (!(ok = poolstats_fill(conn))) goto matane; - if (!(ok = userstats_fill(conn))) - goto matane; - ok = poolstats_fill(conn); + ok = userstats_fill(conn); matane: