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
54076b30
Commit
54076b30
authored
Mar 22, 2007
by
kostja@bodhi.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix events_logs_tests race on Windows.
parent
95597c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mysql-test/t/events_logs_tests.test
mysql-test/t/events_logs_tests.test
+4
-2
No files found.
mysql-test/t/events_logs_tests.test
View file @
54076b30
...
...
@@ -89,10 +89,12 @@ DROP EVENT long_event;
SET
GLOBAL
long_query_time
=
1
;
CREATE
EVENT
long_event2
ON
SCHEDULE
EVERY
1
MINUTE
DO
INSERT
INTO
slow_event_test
SELECT
@@
long_query_time
,
SLEEP
(
2
);
--
echo
"Sleep some more time than the actual event run will take"
--
sleep
2.5
let
$wait_timeout
=
30
;
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
mysql
.
slow_log
;
--
source
include
/
wait_condition
.
inc
--
echo
"Check our table. Should see 2 rows"
SELECT
*
FROM
slow_event_test
;
--
echo
"Check slow log. Should see 1 row because
4 is over the threshold of 3
for GLOBAL, though under SESSION which is 10"
--
echo
"Check slow log. Should see 1 row because
2 is over the threshold of 1
for GLOBAL, though under SESSION which is 10"
--
replace_column
1
USER_HOST
2
SLEEPVAL
SELECT
user_host
,
query_time
,
db
,
sql_text
FROM
mysql
.
slow_log
;
DROP
EVENT
long_event2
;
...
...
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