Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
92eec337
Commit
92eec337
authored
Aug 06, 2010
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed timing issue in test suite
parent
2c35f004
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
18 deletions
+15
-18
mysql-test/suite/percona/percona_slow_query_log-long_query_time-master.opt
...percona/percona_slow_query_log-long_query_time-master.opt
+1
-1
mysql-test/suite/percona/percona_slow_query_log-long_query_time.result
...ite/percona/percona_slow_query_log-long_query_time.result
+9
-10
mysql-test/suite/percona/percona_slow_query_log-long_query_time.test
...suite/percona/percona_slow_query_log-long_query_time.test
+5
-7
No files found.
mysql-test/suite/percona/percona_slow_query_log-long_query_time-master.opt
View file @
92eec337
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=2
\ No newline at end of file
--slow-query-log-file=percona_slow_query_log-long_query_time.log --long-query-time=3
mysql-test/suite/percona/percona_slow_query_log-long_query_time.result
View file @
92eec337
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
mysql-test/suite/percona/percona_slow_query_log-long_query_time.test
View file @
92eec337
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment