blob: e374a7c09f32af61df4f9f0dbcbbcb55441494e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Wait for everything to be purged.
--disable_query_log
if (!$wait_all_purged)
{
SET GLOBAL innodb_max_purge_lag_wait= 0;
}
if ($wait_all_purged)
{
eval SET GLOBAL innodb_max_purge_lag_wait= $wait_all_purged;
}
--enable_query_log
--replace_regex /.*History list length ([0-9]+).*/\1/
let $remaining= `SHOW ENGINE INNODB STATUS`;
echo $remaining transactions not purged;
|