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
b220bb75
Commit
b220bb75
authored
May 24, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge bb-10.6-release into 10.6
parents
270eeeb5
98de15ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
storage/innobase/trx/trx0purge.cc
storage/innobase/trx/trx0purge.cc
+13
-7
No files found.
storage/innobase/trx/trx0purge.cc
View file @
b220bb75
...
...
@@ -399,12 +399,13 @@ static void trx_purge_free_segment(buf_block_t *block, mtr_t &mtr)
}
/** Remove unnecessary history data from a rollback segment.
@param[in,out] rseg rollback segment
@param[in] limit truncate anything before this
@param rseg rollback segment
@param limit truncate anything before this
@param all whether everything can be truncated
@return error code */
static
dberr_t
trx_purge_truncate_rseg_history
(
trx_rseg_t
&
rseg
,
const
purge_sys_t
::
iterator
&
limit
)
trx_purge_truncate_rseg_history
(
trx_rseg_t
&
rseg
,
const
purge_sys_t
::
iterator
&
limit
,
bool
all
)
{
fil_addr_t
hdr_addr
;
mtr_t
mtr
;
...
...
@@ -447,6 +448,9 @@ trx_purge_truncate_rseg_history(trx_rseg_t& rseg,
goto
func_exit
;
}
if
(
!
all
)
goto
func_exit
;
fil_addr_t
prev_hdr_addr
=
flst_get_prev_addr
(
b
->
page
.
frame
+
hdr_addr
.
boffset
+
TRX_UNDO_HISTORY_NODE
);
...
...
@@ -584,9 +588,11 @@ TRANSACTIONAL_TARGET static void trx_purge_truncate_history()
{
ut_ad
(
rseg
.
is_persistent
());
rseg
.
latch
.
wr_lock
(
SRW_LOCK_CALL
);
if
(
!
rseg
.
is_referenced
()
&&
rseg
.
needs_purge
<=
head
.
trx_no
)
if
(
dberr_t
e
=
trx_purge_truncate_rseg_history
(
rseg
,
head
))
err
=
e
;
if
(
dberr_t
e
=
trx_purge_truncate_rseg_history
(
rseg
,
head
,
!
rseg
.
is_referenced
()
&&
rseg
.
needs_purge
<=
head
.
trx_no
))
err
=
e
;
rseg
.
latch
.
wr_unlock
();
}
...
...
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