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 20:50:19 +01:00
parent bc96ce5509
commit 33a8afd8ef

View File

@ -1217,6 +1217,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;