1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Implement a parameter for wait_all_purged.inc

This commit is contained in:
Marko Mäkelä
2018-07-05 13:15:35 +03:00
parent e9f1d8da57
commit fdb9e66fee
2 changed files with 10 additions and 2 deletions

View File

@@ -1,12 +1,18 @@
# Wait for everything to be purged.
# The user should have set innodb_purge_rseg_truncate_frequency=1.
if (!$wait_all_purged)
{
let $wait_all_purged= 0;
}
let $remaining_expect= `select concat('InnoDB ',$wait_all_purged)`;
let $wait_counter= 300;
while ($wait_counter)
{
--replace_regex /.*History list length ([0-9]+).*/\1/
let $remaining= `SHOW ENGINE INNODB STATUS`;
if ($remaining == 'InnoDB 0')
if ($remaining == $remaining_expect)
{
let $wait_counter= 0;
}