create table t1 (f text, vf tinytext as (f), key (vf(64))) engine=innodb;
insert t1 (f) values ('foo');
flush tables;
connect con1,localhost,root,,test;
set debug_sync='TABLE_after_field_clone WAIT_FOR go';
delete from t1;
connection default;
select * from t1;
f	vf
foo	foo
set debug_sync='now SIGNAL go';
connection con1;
disconnect con1;
connection default;
drop table t1;
set debug_sync='reset';
#
# MDEV-39261 MariaDB crash on startup in presence of
#        indexed virtual columns
#
# Create 33 tables with virtual index
InnoDB		0 transactions not purged
connect purge_control,localhost,root;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
connection default;
# Do update on all 33 tables
# restart: --innodb_purge_threads=1 --debug_dbug=d,ib_purge_virtual_index_callback
InnoDB		0 transactions not purged
# Drop all 33 tables
# restart
