From 33a8afd8efeab69095741fc841bac6e026c87910 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Mar 2014 20:50:19 +0100 Subject: [PATCH] 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. --- sql/slave.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/slave.cc b/sql/slave.cc index 0d762199323..c3c50501f53 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -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;