summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeppo Jaakola <seppo.jaakola@codership.com>2013-09-29 23:53:10 +0300
committerSeppo Jaakola <seppo.jaakola@codership.com>2013-09-29 23:53:10 +0300
commit239dcdaa909cba065b9e6c83e59baef25a35eb58 (patch)
tree7eefb6695e7624754d3cf4c968fad3eb9097176a
parent370a67679cc886f512d1f076a00a29e68abed900 (diff)
downloadmariadb-git-239dcdaa909cba065b9e6c83e59baef25a35eb58.tar.gz
References lp:1232890 - Rows_log_event type cast only for row eventsmariadb-galera-5.5.32a
-rw-r--r--sql/sql_parse.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index df11e4bdc8a..30c496561ac 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -8222,11 +8222,11 @@ static inline wsrep_status_t wsrep_apply_rbr(
DBUG_RETURN(WSREP_FATAL);
}
- if (ev->get_type_code() != TABLE_MAP_EVENT &&
+ if ((ev->get_type_code() == WRITE_ROWS_EVENT ||
+ ev->get_type_code() == UPDATE_ROWS_EVENT ||
+ ev->get_type_code() == DELETE_ROWS_EVENT) &&
((Rows_log_event *) ev)->get_flags(Rows_log_event::STMT_END_F))
{
- // TODO: combine with commit on higher level common for the query ws
-
thd->wsrep_rli->cleanup_context(thd, 0);
if (error == 0)