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
pull/3144/head
René Cannaò 6 years ago
parent 045bb460b1
commit d8e32d672a

@ -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;

Loading…
Cancel
Save