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
d8bce94a
Commit
d8bce94a
authored
Nov 10, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
a9150f00
8c886b3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
mysql-test/suite/innodb/r/innodb-lock.result
mysql-test/suite/innodb/r/innodb-lock.result
+17
-0
mysql-test/suite/innodb/t/innodb-lock.test
mysql-test/suite/innodb/t/innodb-lock.test
+41
-0
No files found.
mysql-test/suite/innodb/r/innodb-lock.result
View file @
d8bce94a
...
...
@@ -89,3 +89,20 @@ commit;
# Connection 'con1'.
commit;
drop table t1;
#
#Bug#12842206 INNODB LOCKING REGRESSION FOR INSERT IGNORE
#fixed by re-fixing Bug#7975
#aka Bug#11759688 52020: InnoDB can still deadlock on just INSERT...
#
CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL) ENGINE=InnoDB;
INSERT INTO t1 VALUES(3,1);
BEGIN;
INSERT IGNORE INTO t1 VALUES(3,14);
BEGIN;
INSERT IGNORE INTO t1 VALUES(3,23);
SELECT * FROM t1 FOR UPDATE;
COMMIT;
a b
3 1
COMMIT;
DROP TABLE t1;
mysql-test/suite/innodb/t/innodb-lock.test
View file @
d8bce94a
...
...
@@ -127,3 +127,44 @@ commit;
drop
table
t1
;
# End of 4.1 tests
--
echo
#
--
echo
#Bug#12842206 INNODB LOCKING REGRESSION FOR INSERT IGNORE
--
echo
#fixed by re-fixing Bug#7975
--
echo
#aka Bug#11759688 52020: InnoDB can still deadlock on just INSERT...
--
echo
#
connection
default
;
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
INT
NOT
NULL
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
3
,
1
);
BEGIN
;
# this used to wrongly acquire an X lock; now it takes an S lock
INSERT
IGNORE
INTO
t1
VALUES
(
3
,
14
);
connection
con1
;
BEGIN
;
# this used to wrongly acquire an X lock; now it takes an S lock
INSERT
IGNORE
INTO
t1
VALUES
(
3
,
23
);
--
send
SELECT
*
FROM
t1
FOR
UPDATE
;
connection
con2
;
# Check that the above SELECT is blocked
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
'Sending data'
and
info
=
'SELECT * FROM t1 FOR UPDATE'
;
--
source
include
/
wait_condition
.
inc
connection
default
;
COMMIT
;
connection
con1
;
reap
;
COMMIT
;
disconnect
con1
;
disconnect
con2
;
connection
default
;
DROP
TABLE
t1
;
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