summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2014-03-04 14:37:09 +0100
committerunknown <knielsen@knielsen-hq.org>2014-03-04 14:37:09 +0100
commitcfc2eb9dd20f5101eb11fff3b2896cd05700548c (patch)
treedbdc3455fa74d3c0e8c729da6c431be0faa621b6
parentbd2a0a238974de1879b68db5a4b3798198cb5f68 (diff)
downloadmariadb-git-cfc2eb9dd20f5101eb11fff3b2896cd05700548c.tar.gz
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.
-rw-r--r--sql/slave.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 5aec8d70bad..5275578295b 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -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;