diff options
author | Monty <monty@mariadb.org> | 2017-04-07 10:19:10 +0300 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-07 15:58:17 +0400 |
commit | 546e7aa96f13091dc32f87809e7b6ea19d20e1ad (patch) | |
tree | 822451f20dc33fffefbfabd3dd10c441e657e019 /sql/wsrep_binlog.cc | |
parent | ed305c0fd52d17110e9cc7c2e515d1f881de1102 (diff) | |
download | mariadb-git-546e7aa96f13091dc32f87809e7b6ea19d20e1ad.tar.gz |
MDEV-8203 Assert in Query_log_event::do_apply_event()
This happens because the master writes a table_map event to the binary log, but no row event.
The slave has a check that there should always be a row event if there was a table_map event, which
causes a crash.
Fixed by remembering in the cache what kind of events are logged
and ignore cached statements which is just a table map event.
Diffstat (limited to 'sql/wsrep_binlog.cc')
-rw-r--r-- | sql/wsrep_binlog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_binlog.cc b/sql/wsrep_binlog.cc index 08b7e3f1e3d..9820bf983ca 100644 --- a/sql/wsrep_binlog.cc +++ b/sql/wsrep_binlog.cc @@ -447,7 +447,7 @@ void wsrep_dump_rbr_buf_with_header(THD *thd, const void *rbr_buf, char filename[PATH_MAX]= {0}; File file; IO_CACHE cache; - Log_event_writer writer(&cache); + Log_event_writer writer(&cache, 0); Format_description_log_event *ev; int len= my_snprintf(filename, PATH_MAX, "%s/GRA_%lld_%lld_v2.log", |