From d8e32d672a87e59625593e819b9ab24a4c7446ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 9 Nov 2020 18:04:16 +0100 Subject: [PATCH] Several error codes are now not considered severe enough to shun a node Those error codes are: * from 1099 to 1104 * from 1106 to 1113 * from 1116 to 1118 * 1120 * 1136 * from 1138 to 1149 --- lib/MySQL_HostGroups_Manager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 2a3dd6c17..b78558547 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -872,6 +872,14 @@ void MySrvC::connect_error(int err_num) { return; if (err_num >= 1054 && err_num <= 1075) return; + if (err_num >= 1099 && err_num <= 1104) + return; + if (err_num >= 1106 && err_num <= 1113) + return; + if (err_num >= 1116 && err_num <= 1118) + return; + if (err_num == 1136 || (err_num >= 1138 && err_num <= 1149)) + return; switch (err_num) { case 1007: // Can't create database case 1008: // Can't drop database @@ -884,6 +892,7 @@ void MySrvC::connect_error(int err_num) { case 1051: // Unknown table case 1052: // Column is ambiguous */ + case 1120: case 1203: // User %s already has more than 'max_user_connections' active connections case 1226: // User '%s' has exceeded the '%s' resource (current value: %ld) return;