Fix to bug 658: http://bugs.mariadb.com/show_bug.cgi?id=658
readconnroute.c:Added a check for server status before routing the query.
This commit is contained in:
parent
61fcc1e21e
commit
0ade57e56e
@ -693,7 +693,8 @@ routeQuery(ROUTER *instance, void *router_session, GWBUF *queue)
|
||||
rses_end_locked_router_action(router_cli_ses);
|
||||
}
|
||||
|
||||
if (rses_is_closed || backend_dcb == NULL)
|
||||
if (rses_is_closed || backend_dcb == NULL ||
|
||||
SERVER_IS_DOWN(router_cli_ses->backend->server))
|
||||
{
|
||||
LOGIF(LT, (skygw_log_write(
|
||||
LOGFILE_TRACE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user