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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
14b35d9f
Commit
14b35d9f
authored
Mar 31, 2010
by
mmakela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/5.1: innodb_bug51920.test: Make the test quicker and more deterministic.
Suggested by Vasil Dimov.
parent
a1fcf027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
mysql-test/innodb_bug51920.result
mysql-test/innodb_bug51920.result
+0
-5
mysql-test/innodb_bug51920.test
mysql-test/innodb_bug51920.test
+3
-2
No files found.
mysql-test/innodb_bug51920.result
View file @
14b35d9f
...
...
@@ -9,10 +9,5 @@ SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE INFO="UPDATE bug51920 SET i=2"
INTO @thread_id;
KILL @thread_id;
SELECT sleep(2);
sleep(2)
0
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID=@thread_id;
ID USER HOST DB COMMAND TIME STATE INFO
ERROR 70100: Query execution was interrupted
DROP TABLE bug51920;
mysql-test/innodb_bug51920.test
View file @
14b35d9f
...
...
@@ -22,8 +22,9 @@ WHERE INFO="UPDATE bug51920 SET i=2"
INTO
@
thread_id
;
KILL
@
thread_id
;
SELECT
sleep
(
2
);
SELECT
*
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
ID
=@
thread_id
;
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
information_schema
.
processlist
WHERE
ID
=@
thread_id
;
--
source
include
/
wait_condition
.
inc
connection
con1
;
--
error
ER_QUERY_INTERRUPTED
...
...
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