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
d1fb4ba2
Commit
d1fb4ba2
authored
Aug 26, 2010
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed race condition in a test case for BUG#55580.
parent
b4dc600a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mysql-test/suite/innodb/t/innodb_mysql.test
mysql-test/suite/innodb/t/innodb_mysql.test
+5
-0
No files found.
mysql-test/suite/innodb/t/innodb_mysql.test
View file @
d1fb4ba2
...
...
@@ -768,9 +768,14 @@ START TRANSACTION;
SELECT
*
FROM
t1
LOCK
IN
SHARE
MODE
;
connection
con1
;
let
$conn_id
=
`SELECT CONNECTION_ID()`
;
--
send
SELECT
*
FROM
t1
FOR
UPDATE
connection
con2
;
let
$wait_timeout
=
2
;
let
$wait_condition
=
SELECT
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
ID
=
$conn_id
AND
STATE
=
'Sending data'
;
--
source
include
/
wait_condition
.
inc
--
echo
# should not crash
--
error
ER_LOCK_DEADLOCK
SELECT
*
FROM
t1
GROUP
BY
(
SELECT
a
FROM
t2
LIMIT
1
FOR
UPDATE
)
+
t1
.
a
;
...
...
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