diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index fe2c6a55b..d5966c254 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -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 {