summaryrefslogtreecommitdiff
path: root/sql/wsrep_thd.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-03-11 12:36:00 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-03-11 12:36:00 -0400
commit7a6cad5221b19ed5d54eaca83c16655089734a0e (patch)
treec9b1cfcda05dc69156d398fe62ad0759de58b575 /sql/wsrep_thd.cc
parent07ff90e99b40f86511651415d13a3299a45a01d4 (diff)
downloadmariadb-git-7a6cad5221b19ed5d54eaca83c16655089734a0e.tar.gz
Backport fix for MDEV-7673, MDEV-7203 and MDEV-7192 from 10.0-galera
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r--sql/wsrep_thd.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc
index 5d5917ad3fc..53684935f99 100644
--- a/sql/wsrep_thd.cc
+++ b/sql/wsrep_thd.cc
@@ -94,6 +94,12 @@ static Relay_log_info* wsrep_relay_log_init(const char* log_fname)
}
rli->sql_thd= current_thd;
+
+ if ((rli->deferred_events_collecting= rpl_filter->is_on()))
+ {
+ rli->deferred_events= new Deferred_log_events(rli);
+ }
+
return rli;
}
@@ -132,6 +138,10 @@ static void wsrep_return_from_bf_mode(THD *thd, struct wsrep_thd_shadow* shadow)
thd->net.vio = shadow->vio;
thd->variables.tx_isolation = shadow->tx_isolation;
thd->reset_db(shadow->db, shadow->db_length);
+
+ thd->wsrep_rli->cleanup_after_session();
+ delete thd->wsrep_rli;
+ thd->wsrep_rli= NULL;
}
void wsrep_replay_transaction(THD *thd)