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
60dd52e3
Commit
60dd52e3
authored
May 08, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix innodb.row_lock test to work in 10.0
parent
3e7519f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
mysql-test/suite/innodb/r/row_lock.result
mysql-test/suite/innodb/r/row_lock.result
+0
-3
mysql-test/suite/innodb/t/row_lock.test
mysql-test/suite/innodb/t/row_lock.test
+5
-11
No files found.
mysql-test/suite/innodb/r/row_lock.result
View file @
60dd52e3
...
@@ -6,10 +6,7 @@ CREATE TABLE t3 (e INT) ENGINE=InnoDB;
...
@@ -6,10 +6,7 @@ CREATE TABLE t3 (e INT) ENGINE=InnoDB;
CREATE TABLE t4 ENGINE=InnoDB AS SELECT * FROM t2;
CREATE TABLE t4 ENGINE=InnoDB AS SELECT * FROM t2;
BEGIN;
BEGIN;
UPDATE t1 SET a = 0 WHERE a = ( SELECT e FROM t3 );
UPDATE t1 SET a = 0 WHERE a = ( SELECT e FROM t3 );
SET DEBUG_SYNC='srv_suspend_mysql_thread_enter SIGNAL waiting';
UPDATE t4 SET d = 1 WHERE d in ( SELECT a FROM t1 ) ORDER BY c LIMIT 6;
UPDATE t4 SET d = 1 WHERE d in ( SELECT a FROM t1 ) ORDER BY c LIMIT 6;
SET DEBUG_SYNC='now WAIT_FOR waiting';
SET DEBUG_SYNC='RESET';
UPDATE t4 SET d = 9;
UPDATE t4 SET d = 9;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
commit;
commit;
...
...
mysql-test/suite/innodb/t/row_lock.test
View file @
60dd52e3
if
(
`select plugin_auth_version < "5.6.17" from information_schema.plugins where plugin_name='innodb'`
)
{
--
skip
Not
fixed
in
InnoDB
before
5.6
.
17
}
#
#
# Test of wrong call to unlock_row
# Test of wrong call to unlock_row
# MDEV-5629 Failing assertion: state == TRX_STATE_NOT_STARTED on
# MDEV-5629 Failing assertion: state == TRX_STATE_NOT_STARTED on
...
@@ -10,7 +5,6 @@ if (`select plugin_auth_version < "5.6.17" from information_schema.plugins where
...
@@ -10,7 +5,6 @@ if (`select plugin_auth_version < "5.6.17" from information_schema.plugins where
#
#
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug_sync
.
inc
CREATE
TABLE
t1
(
a
INT
,
b
INT
)
ENGINE
=
InnoDB
;
CREATE
TABLE
t1
(
a
INT
,
b
INT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
);
INSERT
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
);
...
@@ -28,17 +22,17 @@ UPDATE t1 SET a = 0 WHERE a = ( SELECT e FROM t3 );
...
@@ -28,17 +22,17 @@ UPDATE t1 SET a = 0 WHERE a = ( SELECT e FROM t3 );
--
connect
(
con12
,
localhost
,
root
,,
test
)
--
connect
(
con12
,
localhost
,
root
,,
test
)
SET
DEBUG_SYNC
=
'srv_suspend_mysql_thread_enter SIGNAL waiting'
;
--
send
--
send
UPDATE
t4
SET
d
=
1
WHERE
d
in
(
SELECT
a
FROM
t1
)
ORDER
BY
c
LIMIT
6
;
UPDATE
t4
SET
d
=
1
WHERE
d
in
(
SELECT
a
FROM
t1
)
ORDER
BY
c
LIMIT
6
;
--
connection
con11
--
connection
con11
# Wait for con12 to start waiting for con11
# Wait for con12 to start waiting for con11
let
$wait_condition
=
SET
DEBUG_SYNC
=
'now WAIT_FOR waiting'
;
select
count
(
*
)
=
1
from
information_schema
.
innodb_trx
SET
DEBUG_SYNC
=
'RESET'
;
where
trx_state
=
"lock wait"
and
trx_query
like
"%SELECT a FROM t1%"
;
--
source
include
/
wait_condition
.
inc
UPDATE
t4
SET
d
=
9
;
UPDATE
t4
SET
d
=
9
;
...
...
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