]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't check used pooled connections for connection status, as it will cause issues...
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 5 Nov 2007 16:20:13 +0000 (16:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 5 Nov 2007 16:20:13 +0000 (16:20 +0000)
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

res/res_odbc.c

index a88fa5b38f0e3216b5b91e8d28a34cea3d5b7c48..53df46164185c7a0d330facc3486bf8bf6864b87 100644 (file)
@@ -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 */