mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Fixed timing issue in test suite
This commit is contained in:
parent
27d27deeeb
commit
9183144922
3 changed files with 15 additions and 18 deletions
|
@ -1 +1 @@
|
|||
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=2
|
||||
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=3
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
SELECT sleep(1);
|
||||
sleep(1)
|
||||
0
|
||||
SELECT sleep(3);
|
||||
sleep(3)
|
||||
SELECT sleep(6);
|
||||
sleep(6)
|
||||
0
|
||||
SELECT sleep(5);
|
||||
sleep(5)
|
||||
SELECT sleep(10);
|
||||
sleep(10)
|
||||
0
|
||||
set long_query_time=4;
|
||||
set long_query_time=8;
|
||||
SELECT sleep(1);
|
||||
sleep(1)
|
||||
0
|
||||
SELECT sleep(3);
|
||||
sleep(3)
|
||||
SELECT sleep(6);
|
||||
sleep(6)
|
||||
0
|
||||
SELECT sleep(5);
|
||||
sleep(5)
|
||||
SELECT sleep(12);
|
||||
sleep(12)
|
||||
0
|
||||
set long_query_time=2;
|
||||
cat MYSQLD_DATADIR/percona_slow_query_log-long_query_time.log | grep -c Query_time
|
||||
3
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
source include/have_innodb.inc;
|
||||
|
||||
SELECT sleep(1);
|
||||
SELECT sleep(3);
|
||||
SELECT sleep(5);
|
||||
SELECT sleep(6);
|
||||
SELECT sleep(10);
|
||||
|
||||
set long_query_time=4;
|
||||
set long_query_time=8;
|
||||
|
||||
SELECT sleep(1);
|
||||
SELECT sleep(3);
|
||||
SELECT sleep(5);
|
||||
|
||||
set long_query_time=2;
|
||||
SELECT sleep(6);
|
||||
SELECT sleep(12);
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
let $cmd = cat $MYSQLD_DATADIR/percona_slow_query_log-long_query_time.log | grep -c Query_time;
|
||||
|
|
Loading…
Reference in a new issue