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

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Tue Mar 4 21:51:32 EET 2014


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

------------------------------------------------------------
revno: 4103
revision-id: knielsen at knielsen-hq.org-20140304195019-9u07tgs28nao4n5a
parent: psergey at askmonty.org-20140304121558-fm2ek7bs5hvgszn8
committer: knielsen at knielsen-hq.org
branch nick: mariadb-5.5
timestamp: Tue 2014-03-04 20:50:19 +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-02-17 10:00:51 +0000
+++ b/sql/slave.cc	2014-03-04 19:50:19 +0000
@@ -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;
 



More information about the commits mailing list