diff options
author | Sachin Setiya <sachinsetia1001@gmail.com> | 2017-04-03 11:55:51 +0530 |
---|---|---|
committer | Sachin Setiya <sachinsetia1001@gmail.com> | 2017-05-09 18:10:15 +0530 |
commit | 2e2e0d9105bb8cde5ebebfaca412e98ae5f262ef (patch) | |
tree | 79e601547deba52d89403ab6ab532a92b8606c8b /sql | |
parent | c91ecf9e9bebf3cf2dafbd3193de4df94be09870 (diff) | |
download | mariadb-git-2e2e0d9105bb8cde5ebebfaca412e98ae5f262ef.tar.gz |
MDEV-12019 FLASHBACK: Server crashes in bitmap_bits_set / pack_row / ...
Reason for this crash is that table->rpl_write_set is NULL. In
Rows_log_event::do_apply_event we set table->rpl_write_set equal to
table->write_set. But we do not set table->rpl_write_set in
Old_rows_log_event::do_apply_event.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/log_event_old.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log_event_old.cc b/sql/log_event_old.cc index 381f4129321..9ba29ddb0f6 100644 --- a/sql/log_event_old.cc +++ b/sql/log_event_old.cc @@ -221,6 +221,8 @@ Old_rows_log_event::do_apply_event(Old_rows_log_event *ev, rpl_group_info *rgi) /* A small test to verify that objects have consistent types */ DBUG_ASSERT(sizeof(ev_thd->variables.option_bits) == sizeof(OPTION_RELAXED_UNIQUE_CHECKS)); + table->rpl_write_set= table->write_set; + error= do_before_row_operations(table); while (error == 0 && row_start < ev->m_rows_end) { |