mirror of
https://github.com/MariaDB/server.git
synced 2025-04-28 06:45:23 +03:00
MDEV-25506 fixup: Wait for TRUNCATE recovery
This commit is contained in:
parent
4b6f5aec55
commit
9e6fd2995b
@ -8,6 +8,10 @@ connection default;
|
|||||||
SET DEBUG_SYNC='now WAIT_FOR c';
|
SET DEBUG_SYNC='now WAIT_FOR c';
|
||||||
# restart
|
# restart
|
||||||
disconnect wait;
|
disconnect wait;
|
||||||
|
SET @save_frequency=@@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||||
|
InnoDB 0 transactions not purged
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
0
|
0
|
||||||
|
@ -17,7 +17,13 @@ SET DEBUG_SYNC='now WAIT_FOR c';
|
|||||||
--source include/restart_mysqld.inc
|
--source include/restart_mysqld.inc
|
||||||
disconnect wait;
|
disconnect wait;
|
||||||
|
|
||||||
|
SET @save_frequency=@@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||||
|
--source include/wait_all_purged.inc
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
|
||||||
|
|
||||||
--replace_result 2 0
|
--replace_result 2 0
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
TRUNCATE TABLE t1;
|
TRUNCATE TABLE t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user