mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
1b993721ff
InnoDB: in slow shutodwn mode do not stop purge threads as long as some connection threads are running
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
connect con1, localhost, root;
|
|
create table t1 (a int) engine=innodb;
|
|
insert t1 values (1),(2),(3),(4);
|
|
delete from t1 where a=1;
|
|
select user,state from information_schema.processlist order by 2;
|
|
user state
|
|
root
|
|
root Filling schema table
|
|
system user InnoDB purge coordinator
|
|
system user InnoDB purge worker
|
|
system user InnoDB purge worker
|
|
system user InnoDB purge worker
|
|
system user InnoDB shutdown handler
|
|
set global debug_dbug='+d,only_kill_system_threads';
|
|
set global innodb_fast_shutdown=0;
|
|
shutdown;
|
|
connection default;
|
|
disconnect con1;
|
|
select user,state from information_schema.processlist order by 2;
|
|
user state
|
|
root Filling schema table
|
|
system user InnoDB purge coordinator
|
|
system user InnoDB purge worker
|
|
system user InnoDB purge worker
|
|
system user InnoDB purge worker
|
|
system user InnoDB slow shutdown wait
|
|
set global innodb_fast_shutdown=1;
|
|
select user,state from information_schema.processlist order by 2;
|
|
user state
|
|
root Filling schema table
|
|
delete from t1 where a=3;
|
|
set global innodb_fast_shutdown=0;
|
|
ERROR 42000: Variable 'innodb_fast_shutdown' can't be set to the value of '0'
|
|
kill ID;
|
|
ERROR 70100: Connection was killed
|
|
drop table t1;
|