-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-22722 Assertion "inited==NONE" failed in handler::ha_index_init …
…on the slave during UPDATE Add missing call for handler->prepare_for_insert() in Rows_log_event::do_apply_event
- Loading branch information
1 parent
7e79853
commit 72776d4
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
include/master-slave.inc | ||
[connection master] | ||
create table t1 (i1 int, a1 text, unique key i1 (a1)) engine=myisam; | ||
insert into t1 values (1,1); | ||
insert into t1 values (2,2); | ||
update t1 set a1 = 'd' limit 1; | ||
update t1 set a1 = 'd2' where i1= 2; | ||
connection slave; | ||
connection slave; | ||
connection master; | ||
drop table t1; | ||
include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Long unique bugs related to master slave replication | ||
# | ||
|
||
# | ||
# MDEV-22722 Assertion "inited==NONE" failed in handler::ha_index_init on the slave during UPDATE | ||
# | ||
|
||
--source include/have_binlog_format_row.inc | ||
--source include/master-slave.inc | ||
|
||
create table t1 (i1 int, a1 text, unique key i1 (a1)) engine=myisam; | ||
insert into t1 values (1,1); | ||
insert into t1 values (2,2); | ||
update t1 set a1 = 'd' limit 1; | ||
update t1 set a1 = 'd2' where i1= 2; | ||
|
||
sync_slave_with_master; | ||
connection slave; | ||
|
||
connection master; | ||
drop table t1; | ||
|
||
--source include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters