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
85746467
Commit
85746467
authored
Apr 08, 2019
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7974 XA transactions.
Gtid_log_event output fixed for SHOW BINLOG EVENTS.
parent
8191226a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
mysql-test/suite/binlog/r/binlog_xa_prepared_disconnect.result
...-test/suite/binlog/r/binlog_xa_prepared_disconnect.result
+20
-20
sql/log_event.cc
sql/log_event.cc
+2
-1
No files found.
mysql-test/suite/binlog/r/binlog_xa_prepared_disconnect.result
View file @
85746467
...
...
@@ -1047,101 +1047,101 @@ master-bin.000001 # Query # # use `mtr`; INSERT INTO test_suppressions (pattern)
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; CREATE TABLE t (a INT) ENGINE=innodb
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_0
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_0'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=0
master-bin.000001 # Query # # XA END 'trx_0'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_0'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_1
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_1'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=1
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_1'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_1'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_2
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_2'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=2
master-bin.000001 # Query # # XA END 'trx_2'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_2'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_3
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_3'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=3
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_3'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_3'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_4
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_4'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=4
master-bin.000001 # Query # # XA END 'trx_4'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_4'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_5
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_5'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=5
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_5'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_5'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_6
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_6'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=6
master-bin.000001 # Query # # XA END 'trx_6'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_6'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_7
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_7'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=7
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_7'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_7'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_8
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_8'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=8
master-bin.000001 # Query # # XA END 'trx_8'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_8'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_9
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_9'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=9
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_9'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_9'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_10
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_10'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=10
master-bin.000001 # Query # # XA END 'trx_10'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_10'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_11
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_11'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=11
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_11'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_11'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_12
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_12'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=12
master-bin.000001 # Query # # XA END 'trx_12'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_12'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_13
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_13'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=13
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_13'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_13'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_14
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_14'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=14
master-bin.000001 # Query # # XA END 'trx_14'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_14'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_15
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_15'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=15
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_15'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_15'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_16
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_16'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=16
master-bin.000001 # Query # # XA END 'trx_16'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_16'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_17
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_17'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=17
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # XA END 'trx_17'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_17'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_18
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_18'
master-bin.000001 # Query # # use `test`; INSERT INTO t SET a=18
master-bin.000001 # Query # # XA END 'trx_18'
master-bin.000001 # XA_prepare # # XA PREPARE 'trx_18'
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:trx_19
master-bin.000001 # Gtid # # BEGIN GTID #-#-# XID
:'trx_19'
master-bin.000001 # Annotate_rows # # INSERT INTO t SET a=19
master-bin.000001 # Table_map # # table_id: # (test.t)
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
...
...
sql/log_event.cc
View file @
85746467
...
...
@@ -8115,8 +8115,9 @@ Gtid_log_event::pack_info(Protocol *protocol)
if
(
flags2
&
FL_PREPARED_XA
)
{
p
=
strmov
(
p
,
" XID
:
"
);
p
=
strmov
(
p
,
" XID
:'
"
);
p
=
strnmov
(
p
,
xid
.
data
,
xid
.
bqual_length
+
xid
.
gtrid_length
);
*
(
p
++
)
=
'\''
;
}
protocol
->
store
(
buf
,
p
-
buf
,
&
my_charset_bin
);
...
...
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