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
c86d1daa
Commit
c86d1daa
authored
Jun 06, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove some redundant reads
parent
a98ac436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
storage/innobase/trx/trx0undo.cc
storage/innobase/trx/trx0undo.cc
+9
-7
No files found.
storage/innobase/trx/trx0undo.cc
View file @
c86d1daa
...
...
@@ -168,9 +168,10 @@ trx_undo_get_prev_rec_from_prev_page(buf_block_t *&block, uint16_t rec,
uint32_t
page_no
,
uint16_t
offset
,
bool
shared
,
mtr_t
*
mtr
)
{
uint32_t
prev_page_no
=
flst_get_prev_addr
(
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_NODE
+
block
->
page
.
frame
).
page
;
uint32_t
prev_page_no
=
mach_read_from_4
(
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_NODE
+
FLST_PREV
+
FIL_ADDR_PAGE
+
block
->
page
.
frame
);
if
(
prev_page_no
==
FIL_NULL
)
return
nullptr
;
...
...
@@ -237,12 +238,13 @@ trx_undo_get_next_rec_from_next_page(buf_block_t *&block, uint32_t page_no,
{
if
(
page_no
==
block
->
page
.
id
().
page_no
()
&&
mach_read_from_2
(
block
->
page
.
frame
+
offset
+
TRX_UNDO_NEXT_LOG
))
return
NULL
;
return
nullptr
;
uint32_t
next
=
flst_get_next_addr
(
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_NODE
+
block
->
page
.
frame
).
page
;
uint32_t
next
=
mach_read_from_4
(
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_NODE
+
FLST_NEXT
+
FIL_ADDR_PAGE
+
block
->
page
.
frame
);
if
(
next
==
FIL_NULL
)
return
NULL
;
return
nullptr
;
block
=
buf_page_get
(
page_id_t
(
block
->
page
.
id
().
space
(),
next
),
0
,
mode
,
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