MXS-359: Reconnect with disable_sescmd_history if possible

If a session has not yet executed any session commands, it should be
possible to replace failed slave servers.
This commit is contained in:
Markus Mäkelä
2018-03-08 13:57:25 +02:00
parent 16f201beed
commit 57b18cc0ce

View File

@ -434,7 +434,7 @@ static bool handle_error_new_connection(RWSplit *inst,
* Try to get replacement slave or at least the minimum * Try to get replacement slave or at least the minimum
* number of slave connections for router session. * number of slave connections for router session.
*/ */
if (inst->config().disable_sescmd_history) if (myrses->recv_sescmd > 0 && inst->config().disable_sescmd_history)
{ {
succp = inst->have_enough_servers(); succp = inst->have_enough_servers();
} }