Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
MDEV-19338 InnoDB: Failing assertion: !cursor->index->is_committed()
Call mark_columns_per_binlog_row_image before find_row() to set up table->vcol_set early, so the virtual column value will be updated after record read (ha_rnd_pos/ha_index_next/etc) by table->update_virtual_fields() call
- Loading branch information
1 parent
8a61231
commit 91ebf18
Showing
3 changed files
with
54 additions
and
7 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,20 @@ | ||
include/master-slave.inc | ||
[connection master] | ||
connection master; | ||
create table t1 ( | ||
id int auto_increment, | ||
data varchar(32), | ||
virt tinyint as (1), | ||
primary key (id), | ||
key virt (virt) | ||
) engine=innodb default charset=utf8mb4; | ||
insert into t1 (data) values ('broken'); | ||
update t1 set data='more broken'; | ||
connection slave; | ||
select * from t1; | ||
id data virt | ||
1 more broken 1 | ||
connection master; | ||
drop table t1; | ||
connection slave; | ||
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,27 @@ | ||
--source include/have_binlog_format_row.inc | ||
--source include/master-slave.inc | ||
--source include/have_innodb.inc | ||
connection master; | ||
|
||
create table t1 ( | ||
id int auto_increment, | ||
data varchar(32), | ||
virt tinyint as (1), | ||
primary key (id), | ||
key virt (virt) | ||
) engine=innodb default charset=utf8mb4; | ||
|
||
insert into t1 (data) values ('broken'); | ||
|
||
update t1 set data='more broken'; | ||
|
||
--sync_slave_with_master | ||
|
||
select * from t1; | ||
|
||
--connection master | ||
drop table t1; | ||
|
||
--sync_slave_with_master | ||
|
||
--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