Skip to content

Commit b20039d

Browse files
committed
Merge 10.2 into 10.3
2 parents 3b50cd2 + d257c42 commit b20039d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

storage/innobase/log/log0log.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ void log_buffer_extend(ulong len)
228228

229229
log_sys.buf = static_cast<byte*>(
230230
ut_malloc_dontdump(srv_log_buffer_size * 2));
231+
TRASH_ALLOC(log_sys.buf, srv_log_buffer_size * 2);
231232

232233
log_sys.first_in_use = true;
233234

@@ -609,6 +610,7 @@ void log_t::create()
609610
ut_ad(srv_log_buffer_size >= 4U << srv_page_size_shift);
610611

611612
buf= static_cast<byte*>(ut_malloc_dontdump(srv_log_buffer_size * 2));
613+
TRASH_ALLOC(buf, srv_log_buffer_size * 2);
612614

613615
first_in_use= true;
614616

@@ -1069,7 +1071,8 @@ log_write_up_to(
10691071

10701072
log_mutex_exit();
10711073
/* Erase the end of the last log block. */
1072-
memset(write_buf + end_offset, 0, ~end_offset & OS_FILE_LOG_BLOCK_SIZE);
1074+
memset(write_buf + end_offset, 0,
1075+
~end_offset & (OS_FILE_LOG_BLOCK_SIZE - 1));
10731076

10741077
/* Calculate pad_size if needed. */
10751078
pad_size = 0;

0 commit comments

Comments
 (0)