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
df1846ae
Commit
df1846ae
authored
Jul 14, 2020
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.4-MDEV-18838' of
https://github.com/codership/mariadb-server
into 10.4-MDEV-22966
parents
de208723
7b8319f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/suite/galera/r/galera_toi_truncate.result
mysql-test/suite/galera/r/galera_toi_truncate.result
+3
-3
mysql-test/suite/galera/t/galera_toi_truncate.test
mysql-test/suite/galera/t/galera_toi_truncate.test
+6
-5
No files found.
mysql-test/suite/galera/r/galera_toi_truncate.result
View file @
df1846ae
...
...
@@ -7,12 +7,12 @@ CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
connection node_2;
SET SESSION wsrep_retry_autocommit = 0;
INSERT INTO t1 (f1) SELECT 1 FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5, ten AS a6, ten AS a7, ten AS a8;
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
connection node_2a;
connection node_1;
TRUNCATE TABLE t1;
;
TRUNCATE TABLE t1;
connection node_2;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
connection node_1;
connection node_2;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
0
...
...
mysql-test/suite/galera/t/galera_toi_truncate.test
View file @
df1846ae
...
...
@@ -25,17 +25,18 @@ CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
SET
SESSION
wsrep_retry_autocommit
=
0
;
--
send
INSERT
INTO
t1
(
f1
)
SELECT
1
FROM
ten
AS
a1
,
ten
AS
a2
,
ten
AS
a3
,
ten
AS
a4
,
ten
AS
a5
,
ten
AS
a6
,
ten
AS
a7
,
ten
AS
a8
--
connect
node_2a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_2
--
connection
node_2a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'Sending data%'
AND
INFO
LIKE
'INSERT INTO t1 (f1)%'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_1
--
send
TRUNCATE
TABLE
t1
;
TRUNCATE
TABLE
t1
;
--
connection
node_2
--
error
ER_LOCK_DEADLOCK
--
reap
--
connection
node_1
--
reap
--
connection
node_2
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
t1
;
--
connection
node_1
...
...
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