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
0fb84216
Commit
0fb84216
authored
Mar 26, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make mysql.innodb_mysql_lock deterministic
MDEV-7861 main.innodb_mysql_lock fails sporadically in buildbot
parent
caf110fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mysql-test/main/innodb_mysql_lock.result
mysql-test/main/innodb_mysql_lock.result
+1
-0
mysql-test/main/innodb_mysql_lock.test
mysql-test/main/innodb_mysql_lock.test
+6
-3
No files found.
mysql-test/main/innodb_mysql_lock.result
View file @
0fb84216
...
...
@@ -21,6 +21,7 @@ connection con3;
set @@autocommit=0;
DROP TABLE t1;
connection con1;
# Waiting for until transaction will be locked inside innodb subsystem
# Connection 1 is now holding the lock.
# Issuing insert from connection 1 while connection 2&3
# is waiting for the lock should give a deadlock error.
...
...
mysql-test/main/innodb_mysql_lock.test
View file @
0fb84216
--
source
include
/
have_metadata_lock_info
.
inc
--
source
include
/
have_innodb
.
inc
# Save the initial number of concurrent sessions.
...
...
@@ -36,10 +37,12 @@ set @@autocommit=0;
--
send
DROP
TABLE
t1
connection
con1
;
--
echo
# Waiting for until transaction will be locked inside innodb subsystem
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
information_schema
.
processlist
WHERE
info
=
"INSERT INTO t1 VALUES (1)"
and
state
=
"update"
;
SELECT
COUNT
(
*
)
=
1
FROM
information_schema
.
innodb_trx
WHERE
trx_query
=
'INSERT INTO t1 VALUES (1)'
AND
trx_operation_state
=
'inserting'
AND
trx_state
=
'LOCK WAIT'
;
--
source
include
/
wait_condition
.
inc
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
information_schema
.
processlist
...
...
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