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
b20039dd
Commit
b20039dd
authored
May 04, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
3b50cd24
d257c425
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
storage/innobase/log/log0log.cc
storage/innobase/log/log0log.cc
+4
-1
No files found.
storage/innobase/log/log0log.cc
View file @
b20039dd
...
...
@@ -228,6 +228,7 @@ void log_buffer_extend(ulong len)
log_sys
.
buf
=
static_cast
<
byte
*>
(
ut_malloc_dontdump
(
srv_log_buffer_size
*
2
));
TRASH_ALLOC
(
log_sys
.
buf
,
srv_log_buffer_size
*
2
);
log_sys
.
first_in_use
=
true
;
...
...
@@ -609,6 +610,7 @@ void log_t::create()
ut_ad
(
srv_log_buffer_size
>=
4U
<<
srv_page_size_shift
);
buf
=
static_cast
<
byte
*>
(
ut_malloc_dontdump
(
srv_log_buffer_size
*
2
));
TRASH_ALLOC
(
buf
,
srv_log_buffer_size
*
2
);
first_in_use
=
true
;
...
...
@@ -1069,7 +1071,8 @@ log_write_up_to(
log_mutex_exit
();
/* Erase the end of the last log block. */
memset
(
write_buf
+
end_offset
,
0
,
~
end_offset
&
OS_FILE_LOG_BLOCK_SIZE
);
memset
(
write_buf
+
end_offset
,
0
,
~
end_offset
&
(
OS_FILE_LOG_BLOCK_SIZE
-
1
));
/* Calculate pad_size if needed. */
pad_size
=
0
;
...
...
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