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
13f1e970
Commit
13f1e970
authored
Jun 29, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-28944 XA assertions failing in binlog_rollback and binlog_commit
parent
8f6f219a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
mysql-test/main/alter_table_online.result
mysql-test/main/alter_table_online.result
+19
-0
mysql-test/main/alter_table_online.test
mysql-test/main/alter_table_online.test
+22
-0
sql/sql_table.cc
sql/sql_table.cc
+2
-0
No files found.
mysql-test/main/alter_table_online.result
View file @
13f1e970
...
...
@@ -54,3 +54,22 @@ c c2 stamp
5 5 0000-00-00 00:00:00
drop table t;
set sql_mode=default;
#
# MDEV-28944 XA assertions failing in binlog_rollback and binlog_commit
#
CREATE TABLE t (a INT) ENGINE=MyISAM;
INSERT INTO t VALUES (1);
connect con1,localhost,root,,test;
XA START 'xid';
SELECT * FROM t;
a
1
connection default;
ALTER TABLE t NOWAIT ADD KEY (a);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
connection con1;
UPDATE t SET a = 2;
XA END 'xid';
XA COMMIT 'xid' ONE PHASE;
DROP TABLE t;
disconnect con1;
mysql-test/main/alter_table_online.test
View file @
13f1e970
...
...
@@ -33,3 +33,25 @@ alter table t modify c date;
select
*
from
t
;
drop
table
t
;
set
sql_mode
=
default
;
--
echo
#
--
echo
# MDEV-28944 XA assertions failing in binlog_rollback and binlog_commit
--
echo
#
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
MyISAM
;
INSERT
INTO
t
VALUES
(
1
);
--
connect
(
con1
,
localhost
,
root
,,
test
)
XA
START
'xid'
;
SELECT
*
FROM
t
;
--
connection
default
--
error
ER_LOCK_WAIT_TIMEOUT
ALTER
TABLE
t
NOWAIT
ADD
KEY
(
a
);
--
connection
con1
UPDATE
t
SET
a
=
2
;
XA
END
'xid'
;
XA
COMMIT
'xid'
ONE
PHASE
;
DROP
TABLE
t
;
--
disconnect
con1
sql/sql_table.cc
View file @
13f1e970
...
...
@@ -12011,6 +12011,8 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
thd_progress_next_stage
(
thd
);
error
=
online_alter_read_from_binlog
(
thd
,
&
rgi
,
binlog
);
}
if
(
error
)
from
->
s
->
tdc
->
flush_unused
(
1
);
// to free the binlog
}
else
if
(
online
)
// error was on copy stage
{
...
...
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