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:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user