diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 269e303391..fd359fef54 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1966,7 +1966,7 @@ void * monitor_galera_thread(void *arg) { } } 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 {