[Commits] Rev 3980: MDEV-5703: [PATCH] Slave disconnects and fails to reconnect on Error_code: 1159 in http://bazaar.launchpad.net/~maria-captains/maria/10.0

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Tue Mar 4 15:37:09 EET 2014


At http://bazaar.launchpad.net/~maria-captains/maria/10.0

------------------------------------------------------------
revno: 3980
revision-id: knielsen at knielsen-hq.org-20140304133709-r7npbuz96l4qjx18
parent: knielsen at knielsen-hq.org-20140304132100-09p3xpfr2mgbhwm9
committer: knielsen at knielsen-hq.org
branch nick: mariadb-10.0-base
timestamp: Tue 2014-03-04 14:37:09 +0100
message:
  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.
=== modified file 'sql/slave.cc'
--- a/sql/slave.cc	2014-03-04 13:21:00 +0000
+++ b/sql/slave.cc	2014-03-04 13:37:09 +0000
@@ -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;
 



More information about the commits mailing list