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
58de2bf3
Commit
58de2bf3
authored
Feb 08, 2019
by
Teemu Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18481 Use mlog_memset() to clear wsrep checkpoint
parent
eb1d7aee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
storage/innobase/trx/trx0rseg.cc
storage/innobase/trx/trx0rseg.cc
+14
-6
No files found.
storage/innobase/trx/trx0rseg.cc
View file @
58de2bf3
...
...
@@ -98,6 +98,19 @@ trx_rseg_update_wsrep_checkpoint(
trx_rseg_write_wsrep_checkpoint
(
rseg_header
,
xid
,
mtr
);
}
/** Clear the WSREP XID information from rollback segment header.
@param[in,out] rseg_header Rollback segment header
@param[in,out] mtr mini-transaction */
static
void
trx_rseg_clear_wsrep_checkpoint
(
trx_rsegf_t
*
rseg_header
,
mtr_t
*
mtr
)
{
mlog_memset
(
rseg_header
+
TRX_RSEG_WSREP_XID_INFO
,
TRX_RSEG_WSREP_XID_DATA
+
XIDDATASIZE
-
TRX_RSEG_WSREP_XID_INFO
,
0
,
mtr
);
}
/** Update WSREP checkpoint XID in first rollback segment header
as part of wsrep_set_SE_checkpoint() when it is guaranteed that there
are no wsrep transactions committing.
...
...
@@ -128,10 +141,6 @@ void trx_rseg_update_wsrep_checkpoint(const XID* xid)
trx_rseg_update_wsrep_checkpoint
(
rseg_header
,
xid
,
&
mtr
);
if
(
must_clear_rsegs
)
{
XID
null_xid
;
memset
(
&
null_xid
,
0
,
sizeof
null_xid
);
null_xid
.
null
();
memcpy
(
wsrep_uuid
,
xid_uuid
,
sizeof
wsrep_uuid
);
/* Because the UUID part of the WSREP XID differed
from current_xid_uuid, the WSREP group UUID was
changed, and we must reset the XID in all rollback
...
...
@@ -139,11 +148,10 @@ void trx_rseg_update_wsrep_checkpoint(const XID* xid)
for
(
ulint
rseg_id
=
1
;
rseg_id
<
TRX_SYS_N_RSEGS
;
++
rseg_id
)
{
if
(
const
trx_rseg_t
*
rseg
=
trx_sys
.
rseg_array
[
rseg_id
])
{
trx_rseg_
write
_wsrep_checkpoint
(
trx_rseg_
clear
_wsrep_checkpoint
(
trx_rsegf_get
(
rseg
->
space
,
rseg
->
page_no
,
&
mtr
),
&
null_xid
,
&
mtr
);
}
}
...
...
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