mariadb/mysql-test/t/slowlog_enospace-10508.test
Sergei Golubchik 735a4a17c2 MDEV-10508 Mariadb crash on out of disk space during dump import
update info->write_end and info->write_pos together, with no
"return on error" in between, otherwise write_end might end up being
smaller than write_pos
2016-09-28 17:59:11 +02:00

24 lines
640 B
Text

#
# MDEV-10508 Mariadb crash on out of disk space during dump import
#
--source include/have_sequence.inc
--source include/have_debug.inc
call mtr.add_suppression('Error writing file.*errno: 28 ');
create table t1 (a int, b int) engine=memory;
insert t1 select seq, seq+1 from seq_1_to_1000;
set global general_log=0;
set global log_queries_not_using_indexes=1;
set debug_dbug='+d,simulate_file_write_error';
--disable_result_log
--let $run= 50
while ($run)
{
select * from t1 where a>10;
dec $run;
}
--enable_result_log
set debug_dbug='';
set global general_log=1;
set global log_queries_not_using_indexes=default;
drop table t1;