diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-06-13 14:24:42 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-06-30 16:12:18 +0200 |
commit | 7d42135959ae40d0812a0efd8513fb28e1ed5e35 (patch) | |
tree | c8ae8851633e16a2596efac48ced1b527957c667 | |
parent | 65f7473cf9c8339ae892f22a4f03f7a7499f289c (diff) | |
download | mariadb-git-7d42135959ae40d0812a0efd8513fb28e1ed5e35.tar.gz |
MDEV-16485 Insert rows unable to execute correctly on slave's System-Versioned Tables
RBR not versioned -> versioned
do it for all write_row events, not only for WRITE_ROWS_EVENT_V1
-rw-r--r-- | sql/log_event.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7a6d0a1821b..4bce6fa3157 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -13155,8 +13155,7 @@ Rows_log_event::write_row(rpl_group_info *rgi, } // Handle INSERT. - // Set vers fields when replicating from not system-versioned table. - if (m_type == WRITE_ROWS_EVENT_V1 && table->versioned(VERS_TIMESTAMP)) + if (table->versioned(VERS_TIMESTAMP)) { ulong sec_part; bitmap_set_bit(table->read_set, table->vers_start_field()->field_index); |