1#
2# Long unique bugs related to master slave replication
3#
4
5#
6# MDEV-22722 Assertion "inited==NONE" failed in handler::ha_index_init on the slave during UPDATE
7#
8
9--source include/have_binlog_format_row.inc
10--source include/master-slave.inc
11
12create table t1 (i1 int, a1 text, unique key i1 (a1)) engine=myisam;
13insert into t1 values (1,1);
14insert into t1 values (2,2);
15update t1 set a1 = 'd' limit 1;
16update t1 set a1 = 'd2' where i1= 2;
17
18sync_slave_with_master;
19connection slave;
20
21connection master;
22drop table t1;
23
24--source include/rpl_end.inc
25