mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -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_cli(fd, "Pooled: yes\nLimit: %d\nConnections in use: %d\n", class->limit, class->count);
|
||||||
|
|
||||||
AST_LIST_TRAVERSE(&(class->odbc_obj), current, list) {
|
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 {
|
} else {
|
||||||
/* Should only ever be one of these */
|
/* Should only ever be one of these */
|
||||||
|
Reference in New Issue
Block a user