MDEV-5703: [PATCH] Slave disconnects and fails to reconnect on Error_code: 1159

Patch from Tomas Matejicek

Add missing error code to is_networ_error(), to allow slave to
automatically attempt reconnection also in this case.
This commit is contained in:
unknown 2014-03-04 14:37:09 +01:00
parent bd2a0a2389
commit cfc2eb9dd2

View file

@ -1339,6 +1339,7 @@ bool is_network_error(uint errorno)
errorno == ER_CON_COUNT_ERROR ||
errorno == ER_CONNECTION_KILLED ||
errorno == ER_NEW_ABORTING_CONNECTION ||
errorno == ER_NET_READ_INTERRUPTED ||
errorno == ER_SERVER_SHUTDOWN)
return TRUE;