mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-15395 Wrong result or Assertion `old_part_id == m_last_part' failed in ha_partition::update_row on slave
Revert commit fd240a10e3
and add a test case
This commit is contained in:
@ -157,4 +157,11 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=INNODB_OR_MYISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
) ENGINE=INNODB_OR_MYISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
||||||
connection master;
|
connection master;
|
||||||
drop table t1, t2;
|
drop table t1, t2;
|
||||||
|
create table t1 (i int) with system versioning partition by system_time limit 8 ( partition p1 history, partition p2 history, partition pn current );
|
||||||
|
insert into t1 values (1);
|
||||||
|
update t1 set i = 1;
|
||||||
|
update t1 set i = 0;
|
||||||
|
connection slave;
|
||||||
|
connection master;
|
||||||
|
drop table t1;
|
||||||
include/rpl_end.inc
|
include/rpl_end.inc
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--source include/have_binlog_format_mixed_or_statement.inc
|
|
||||||
--source suite/versioning/engines.inc
|
--source suite/versioning/engines.inc
|
||||||
|
--source include/have_partition.inc
|
||||||
--source include/master-slave.inc
|
--source include/master-slave.inc
|
||||||
|
|
||||||
#BUG#12662190 - COM_COMMIT IS NOT INCREMENTED FROM THE BINARY LOGS ON SLAVE, COM_BEGIN IS
|
#BUG#12662190 - COM_COMMIT IS NOT INCREMENTED FROM THE BINARY LOGS ON SLAVE, COM_BEGIN IS
|
||||||
@ -122,4 +122,15 @@ show create table t1;
|
|||||||
connection master;
|
connection master;
|
||||||
drop table t1, t2;
|
drop table t1, t2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# MDEV-15395 Wrong result or Assertion `old_part_id == m_last_part' failed in ha_partition::update_row on slave
|
||||||
|
#
|
||||||
|
create table t1 (i int) with system versioning partition by system_time limit 8 ( partition p1 history, partition p2 history, partition pn current );
|
||||||
|
insert into t1 values (1);
|
||||||
|
update t1 set i = 1;
|
||||||
|
update t1 set i = 0;
|
||||||
|
sync_slave_with_master;
|
||||||
|
connection master;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--source include/rpl_end.inc
|
--source include/rpl_end.inc
|
||||||
|
@ -6197,9 +6197,6 @@ int THD::decide_logging_format(TABLE_LIST *tables)
|
|||||||
flags_write_some_set |= flags;
|
flags_write_some_set |= flags;
|
||||||
is_write= TRUE;
|
is_write= TRUE;
|
||||||
|
|
||||||
if (table->table->versioned())
|
|
||||||
flags_write_all_set &= HA_BINLOG_STMT_CAPABLE;
|
|
||||||
|
|
||||||
prev_write_table= table->table;
|
prev_write_table= table->table;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user