bailing out on missing _ghc table on failure to writing to it

This commit is contained in:
Shlomi Noach 2019-08-01 15:19:38 +03:00
parent e2482d4e2e
commit 1a45b5fffc
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
color varchar(32),
primary key(id)
) auto_increment=1;
insert into gh_ost_test values (null, 1, 'red');
drop event if exists gh_ost_test;
delimiter ;;
create event gh_ost_test
on schedule every 1 second
starts current_timestamp + interval 3 second
ends current_timestamp + interval 60 second
on completion not preserve
enable
do
begin
insert into gh_ost_test values (null, 1, 'blue');
drop table if exists _gh_ost_test_ghc;
end ;;

View File

@ -0,0 +1 @@
Error 1146: Table 'test._gh_ost_test_ghc' doesn't exist

View File

@ -0,0 +1 @@
--throttle-query='select sleep(1)'