Merge pull request #3227 from sysown/v2.1.0-2953

Closes #2953: Honor 'wsrep_sst_donor_rejects_queries' avoiding setting a DONOR node offline during a SST
pull/3243/head
René Cannaò 5 years ago committed by GitHub
commit da8979d1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1966,7 +1966,7 @@ __exit_monitor_galera_thread:
}
} else {
if (fields) { // if we didn't get any error, but fileds is NULL, we are likely hitting bug #1994
if (primary_partition == false || wsrep_desync == true || wsrep_local_state!=4) {
if (primary_partition == false || wsrep_desync == true || (wsrep_local_state!=4 && (wsrep_local_state != 2 || wsrep_sst_donor_rejects_queries))) {
if (primary_partition == false) {
MyHGM->update_galera_set_offline(mmsd->hostname, mmsd->port, mmsd->writer_hostgroup, (char *)"primary_partition=NO");
} else {

Loading…
Cancel
Save