MXS-359: Fix master_failure_mode=fail_instantly

The connection was not closed when master_failure_mode=fail_instantly was
used. This caused rwsplit_readonly to fail.
This commit is contained in:
Markus Mäkelä 2018-03-20 11:54:19 +02:00
parent 0fde6e501d
commit 3e0b3db65e
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1389,7 +1389,10 @@ static void handleError(MXS_ROUTER *instance,
* can't be sure whether it was executed or not. In this
* case the safest thing to do is to close the client
* connection. */
can_continue = true;
if (rses->rses_config.master_failure_mode != RW_FAIL_INSTANTLY)
{
can_continue = true;
}
}
else if (!SERVER_IS_MASTER(srv) && !srv->master_err_is_logged)
{