diff options
Diffstat (limited to 'sql/events.cc')
-rw-r--r-- | sql/events.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/events.cc b/sql/events.cc index 242689f8370..3e731cc23c4 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -1205,9 +1205,9 @@ Events::load_events_from_db(THD *thd) #ifdef WITH_WSREP /** - IF SST is done from a galera node that is also acting as MASTER - newly synced node in galera eco-system will also copy-over the event state - enabling duplicate event in galera eco-system. + If SST is done from a galera node that is also acting as MASTER + newly synced node in galera eco-system will also copy-over the + event state enabling duplicate event in galera eco-system. DISABLE such events if the current node is not event orginator. (Also, make sure you skip disabling it if is already disabled to avoid creation of redundant action) @@ -1217,7 +1217,7 @@ Events::load_events_from_db(THD *thd) Infact, based on galera use-case it seems like it recommends to have each node with different server-id. */ - if (et->originator != thd->variables.server_id) + if (WSREP(thd) && et->originator != thd->variables.server_id) { if (et->status == Event_parse_data::SLAVESIDE_DISABLED) continue; |