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
24a6b413
Commit
24a6b413
authored
Dec 03, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move page initialization to better place.
parent
316d8c7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
storage/innobase/fil/fil0pagecompress.cc
storage/innobase/fil/fil0pagecompress.cc
+0
-10
storage/xtradb/fil/fil0pagecompress.cc
storage/xtradb/fil/fil0pagecompress.cc
+0
-10
No files found.
storage/innobase/fil/fil0pagecompress.cc
View file @
24a6b413
...
...
@@ -461,9 +461,6 @@ fil_compress_page(
ut_a
(
block_size
>
0
);
#endif
write_size
=
(
size_t
)
ut_uint64_align_up
((
ib_uint64_t
)
write_size
,
block_size
);
/* Initialize rest of the written data to avoid
uninitialized bytes */
memset
(
out_buf
+
tmp
,
0
,
write_size
-
tmp
);
#ifdef UNIV_DEBUG
ut_a
(
write_size
>
0
&&
((
write_size
%
block_size
)
==
0
));
ut_a
(
write_size
>=
tmp
);
...
...
@@ -480,13 +477,6 @@ fil_compress_page(
srv_stats
.
page_compression_saved
.
add
((
len
-
write_size
));
srv_stats
.
pages_page_compressed
.
inc
();
if
(
!
srv_use_trim
)
{
/* If persistent trims are not used we always write full
page and end of the page needs to be initialized.*/
memset
(
out_buf
+
write_size
,
0
,
len
-
write_size
);
write_size
=
len
;
}
*
out_len
=
write_size
;
return
(
out_buf
);
...
...
storage/xtradb/fil/fil0pagecompress.cc
View file @
24a6b413
...
...
@@ -458,9 +458,6 @@ fil_compress_page(
ut_a
(
block_size
>
0
);
#endif
write_size
=
(
size_t
)
ut_uint64_align_up
((
ib_uint64_t
)
write_size
,
block_size
);
/* Initialize rest of the written data to avoid
uninitialized bytes */
memset
(
out_buf
+
tmp
,
0
,
write_size
-
tmp
);
#ifdef UNIV_DEBUG
ut_a
(
write_size
>
0
&&
((
write_size
%
block_size
)
==
0
));
ut_a
(
write_size
>=
tmp
);
...
...
@@ -477,13 +474,6 @@ fil_compress_page(
srv_stats
.
page_compression_saved
.
add
((
len
-
write_size
));
srv_stats
.
pages_page_compressed
.
inc
();
if
(
!
srv_use_trim
)
{
/* If persistent trims are not used we always write full
page and end of the page needs to be initialized.*/
memset
(
out_buf
+
write_size
,
0
,
len
-
write_size
);
write_size
=
len
;
}
*
out_len
=
write_size
;
return
(
out_buf
);
...
...
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