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
c21aa486
Commit
c21aa486
authored
May 14, 2024
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-32633: additional post-merge changes for 10.5+
parent
a4838721
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
20 deletions
+7
-20
sql/log.cc
sql/log.cc
+5
-13
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+2
-7
No files found.
sql/log.cc
View file @
c21aa486
...
@@ -5257,10 +5257,9 @@ MYSQL_BIN_LOG::is_xidlist_idle_nolock()
...
@@ -5257,10 +5257,9 @@ MYSQL_BIN_LOG::is_xidlist_idle_nolock()
#ifdef WITH_WSREP
#ifdef WITH_WSREP
static
bool
is_gtid_written_on_trans_start
(
const
THD
*
thd
)
static
bool
is_gtid_written_on_trans_start
(
const
THD
*
thd
)
{
{
return
wsrep_
gtid_mode
&&
WSREP
(
thd
)
&&
return
wsrep_
on
(
thd
)
&&
(
thd
->
variables
.
gtid_seq_no
||
thd
->
variables
.
wsrep_gtid_seq_no
)
&&
(
thd
->
variables
.
gtid_seq_no
||
thd
->
variables
.
wsrep_gtid_seq_no
)
&&
((
thd
->
slave_thread
&&
wsrep_thd_is_local
(
thd
))
||
(
thd
->
wsrep_cs
().
mode
()
==
wsrep
::
client_state
::
m_local
);
(
!
thd
->
slave_thread
&&
(
wsrep_thd_is_applying
(
thd
))));
}
}
#endif
#endif
...
@@ -5903,8 +5902,7 @@ THD::binlog_start_trans_and_stmt()
...
@@ -5903,8 +5902,7 @@ THD::binlog_start_trans_and_stmt()
Ha_trx_info
*
ha_info
;
Ha_trx_info
*
ha_info
;
ha_info
=
this
->
ha_data
[
binlog_hton
->
slot
].
ha_info
+
(
mstmt_mode
?
1
:
0
);
ha_info
=
this
->
ha_data
[
binlog_hton
->
slot
].
ha_info
+
(
mstmt_mode
?
1
:
0
);
if
(
!
ha_info
->
is_started
()
&&
is_gtid_written_on_trans_start
(
this
)
&&
if
(
!
ha_info
->
is_started
()
&&
is_gtid_written_on_trans_start
(
this
))
(
this
->
wsrep_cs
().
mode
()
==
wsrep
::
client_state
::
m_local
))
{
{
uchar
*
buf
=
0
;
uchar
*
buf
=
0
;
size_t
len
=
0
;
size_t
len
=
0
;
...
@@ -5922,14 +5920,8 @@ THD::binlog_start_trans_and_stmt()
...
@@ -5922,14 +5920,8 @@ THD::binlog_start_trans_and_stmt()
domain_id
=
wsrep_gtid_server
.
domain_id
;
domain_id
=
wsrep_gtid_server
.
domain_id
;
server_id
=
wsrep_gtid_server
.
server_id
;
server_id
=
wsrep_gtid_server
.
server_id
;
}
}
rpl_group_info
*
rgi
=
this
->
slave_thread
?
this
->
rgi_slave
:
this
->
wsrep_rgi
;
Gtid_log_event
gtid_event
(
this
,
seqno
,
domain_id
,
true
,
const
bool
standalone
=
LOG_EVENT_SUPPRESS_USE_F
,
true
,
0
);
rgi
->
gtid_ev_flags2
&
Gtid_log_event
::
FL_STANDALONE
;
const
bool
is_transactional
=
rgi
->
gtid_ev_flags2
&
Gtid_log_event
::
FL_TRANSACTIONAL
;
Gtid_log_event
gtid_event
(
this
,
seqno
,
domain_id
,
standalone
,
LOG_EVENT_SUPPRESS_USE_F
,
is_transactional
,
0
);
// Replicated events in writeset doesn't have checksum
// Replicated events in writeset doesn't have checksum
gtid_event
.
checksum_alg
=
BINLOG_CHECKSUM_ALG_OFF
;
gtid_event
.
checksum_alg
=
BINLOG_CHECKSUM_ALG_OFF
;
gtid_event
.
server_id
=
server_id
;
gtid_event
.
server_id
=
server_id
;
...
...
sql/wsrep_mysqld.cc
View file @
c21aa486
...
@@ -1827,13 +1827,8 @@ int wsrep_to_buf_helper(
...
@@ -1827,13 +1827,8 @@ int wsrep_to_buf_helper(
domain_id
=
wsrep_gtid_server
.
domain_id
;
domain_id
=
wsrep_gtid_server
.
domain_id
;
server_id
=
wsrep_gtid_server
.
server_id
;
server_id
=
wsrep_gtid_server
.
server_id
;
}
}
rpl_group_info
*
rgi
=
thd
->
slave_thread
?
thd
->
rgi_slave
:
thd
->
wsrep_rgi
;
Gtid_log_event
gtid_event
(
thd
,
seqno
,
domain_id
,
true
,
const
bool
standalone
=
LOG_EVENT_SUPPRESS_USE_F
,
true
,
0
);
rgi
->
gtid_ev_flags2
&
Gtid_log_event
::
FL_STANDALONE
;
const
bool
is_transactional
=
rgi
->
gtid_ev_flags2
&
Gtid_log_event
::
FL_TRANSACTIONAL
;
Gtid_log_event
gtid_event
(
thd
,
seqno
,
domain_id
,
standalone
,
LOG_EVENT_SUPPRESS_USE_F
,
is_transactional
,
0
);
gtid_event
.
server_id
=
server_id
;
gtid_event
.
server_id
=
server_id
;
if
(
!
gtid_event
.
is_valid
())
ret
=
0
;
if
(
!
gtid_event
.
is_valid
())
ret
=
0
;
ret
=
writer
.
write
(
&
gtid_event
);
ret
=
writer
.
write
(
&
gtid_event
);
...
...
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