1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

Adjustment for fix for Bug#11758196

log_buffer_extend() should fill the new buffer with 0.
This commit is contained in:
Yasufumi Kinoshita
2013-09-30 15:02:54 +09:00
parent e64b9e1250
commit d4800a57ba

View File

@@ -275,6 +275,7 @@ log_buffer_extend(
log_sys->buf_ptr = mem_alloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE);
log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE);
log_sys->buf_size = LOG_BUFFER_SIZE;
memset(log_sys->buf, '\0', LOG_BUFFER_SIZE);
log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO
- LOG_BUF_FLUSH_MARGIN;