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
143d8e46
Commit
143d8e46
authored
Aug 31, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed timing issues in events.test
parent
136a5412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
mysql-test/t/events.test
mysql-test/t/events.test
+11
-2
No files found.
mysql-test/t/events.test
View file @
143d8e46
...
...
@@ -453,7 +453,8 @@ create event закачка on schedule every 10 hour do select get_lock("test_l
--
echo
"Should have only 2 processes: the scheduler and the locked event"
let
$wait_condition
=
select
count
(
*
)
=
2
from
information_schema
.
processlist
where
(
info
like
"select get_lock%"
OR
user
=
'event_scheduler'
);
where
(
(
state
like
'User lock%'
AND
info
like
'select get_lock%'
)
OR
(
command
=
'Daemon'
AND
user
=
'event_scheduler'
));
--
source
include
/
wait_condition
.
inc
select
/*2*/
user
,
host
,
db
,
command
,
state
,
info
...
...
@@ -464,6 +465,13 @@ select /*2*/ user, host, db, command, state, info
select
release_lock
(
"test_lock2"
);
drop
event
закачка
;
# Wait for release_lock("test_lock2") to complete,
# to avoid polluting the next test information_schema.processlist
let
$wait_condition
=
select
count
(
*
)
=
0
from
information_schema
.
processlist
where
(
state
like
'User lock%'
AND
info
like
'select get_lock%'
);
--
source
include
/
wait_condition
.
inc
##
## 1. get a lock
## 2. create an event
...
...
@@ -478,7 +486,8 @@ create event закачка21 on schedule every 10 hour do select get_lock("test
--
echo
"Should have only 2 processes: the scheduler and the locked event"
let
$wait_condition
=
select
count
(
*
)
=
2
from
information_schema
.
processlist
where
(
info
like
"select get_lock%"
OR
user
=
'event_scheduler'
);
where
(
(
state
like
'User lock%'
AND
info
like
'select get_lock%'
)
OR
(
command
=
'Daemon'
AND
user
=
'event_scheduler'
));
--
source
include
/
wait_condition
.
inc
select
/*3*/
user
,
host
,
db
,
command
,
state
,
info
...
...
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