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
2a6fa1c4
Commit
2a6fa1c4
authored
Feb 12, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21132: Use memcpy_aligned, memset_aligned
parent
4b087e17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
storage/innobase/include/buf0flu.ic
storage/innobase/include/buf0flu.ic
+2
-5
storage/innobase/row/row0import.cc
storage/innobase/row/row0import.cc
+1
-2
No files found.
storage/innobase/include/buf0flu.ic
View file @
2a6fa1c4
...
@@ -60,11 +60,8 @@ buf_flush_note_modification(
...
@@ -60,11 +60,8 @@ buf_flush_note_modification(
ut_ad(mach_read_from_8(block->frame + FIL_PAGE_LSN) <= end_lsn);
ut_ad(mach_read_from_8(block->frame + FIL_PAGE_LSN) <= end_lsn);
mach_write_to_8(block->frame + FIL_PAGE_LSN, end_lsn);
mach_write_to_8(block->frame + FIL_PAGE_LSN, end_lsn);
if (UNIV_LIKELY_NULL(block->page.zip.data)) {
if (UNIV_LIKELY_NULL(block->page.zip.data)) {
compile_time_assert(FIL_PAGE_LSN % 8 == 0);
memcpy_aligned<8>(FIL_PAGE_LSN + block->page.zip.data,
*reinterpret_cast<uint64_t*>(FIL_PAGE_LSN
FIL_PAGE_LSN + block->frame, 8);
+ block->page.zip.data)
= *reinterpret_cast<const uint64_t*>(FIL_PAGE_LSN
+ block->frame);
}
}
if (block->page.oldest_modification == 0) {
if (block->page.oldest_modification == 0) {
...
...
storage/innobase/row/row0import.cc
View file @
2a6fa1c4
...
@@ -2122,8 +2122,7 @@ dberr_t PageConverter::operator()(buf_block_t* block) UNIV_NOTHROW
...
@@ -2122,8 +2122,7 @@ dberr_t PageConverter::operator()(buf_block_t* block) UNIV_NOTHROW
const
bool
full_crc32
=
fil_space_t
::
full_crc32
(
get_space_flags
());
const
bool
full_crc32
=
fil_space_t
::
full_crc32
(
get_space_flags
());
byte
*
frame
=
get_frame
(
block
);
byte
*
frame
=
get_frame
(
block
);
compile_time_assert
(
FIL_PAGE_LSN
%
8
==
0
);
memset_aligned
<
8
>
(
frame
+
FIL_PAGE_LSN
,
0
,
8
);
*
reinterpret_cast
<
uint64_t
*>
(
frame
+
FIL_PAGE_LSN
)
=
0
;
if
(
!
block
->
page
.
zip
.
data
)
{
if
(
!
block
->
page
.
zip
.
data
)
{
buf_flush_init_for_writing
(
buf_flush_init_for_writing
(
...
...
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