From: Tilghman Lesher Date: Mon, 5 Nov 2007 16:20:13 +0000 (+0000) Subject: Don't check used pooled connections for connection status, as it will cause issues... X-Git-Tag: 1.4.14~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d5bf38048ef5d7d03b6233ef9b2031cf13c6dc1;p=thirdparty%2Fasterisk.git Don't check used pooled connections for connection status, as it will cause issues for prepared queries. Reported by: Nick Gorham (via -dev list) Patch by: tilghman git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88539 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_odbc.c b/res/res_odbc.c index a88fa5b38f..53df461641 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -322,7 +322,7 @@ static int odbc_show_command(int fd, int argc, char **argv) ast_cli(fd, "Pooled: yes\nLimit: %d\nConnections in use: %d\n", class->limit, class->count); AST_LIST_TRAVERSE(&(class->odbc_obj), current, list) { - ast_cli(fd, " Connection %d: %s\n", ++count, current->up && ast_odbc_sanity_check(current) ? "connected" : "disconnected"); + ast_cli(fd, " Connection %d: %s\n", ++count, current->used ? "in use" : current->up && ast_odbc_sanity_check(current) ? "connected" : "disconnected"); } } else { /* Should only ever be one of these */