File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ void log_buffer_extend(ulong len)
228
228
229
229
log_sys.buf = static_cast <byte*>(
230
230
ut_malloc_dontdump (srv_log_buffer_size * 2 ));
231
+ TRASH_ALLOC (log_sys.buf , srv_log_buffer_size * 2 );
231
232
232
233
log_sys.first_in_use = true ;
233
234
@@ -609,6 +610,7 @@ void log_t::create()
609
610
ut_ad (srv_log_buffer_size >= 4U << srv_page_size_shift);
610
611
611
612
buf= static_cast <byte*>(ut_malloc_dontdump (srv_log_buffer_size * 2 ));
613
+ TRASH_ALLOC (buf, srv_log_buffer_size * 2 );
612
614
613
615
first_in_use= true ;
614
616
@@ -1069,7 +1071,8 @@ log_write_up_to(
1069
1071
1070
1072
log_mutex_exit ();
1071
1073
/* 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 ));
1073
1076
1074
1077
/* Calculate pad_size if needed. */
1075
1078
pad_size = 0 ;
You can’t perform that action at this time.
0 commit comments