summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorYasufumi Kinoshita <yasufumi.kinoshita@oracle.com>2013-09-30 15:02:54 +0900
committerYasufumi Kinoshita <yasufumi.kinoshita@oracle.com>2013-09-30 15:02:54 +0900
commitb9284e024054b6cb1463140d9deb3462f0d7565b (patch)
treeccbc87cf59c1fb752b7d70c0bd171960075d93fc /storage
parent47312f19cb79d833d7b52d29761d8277360f99c9 (diff)
downloadmariadb-git-b9284e024054b6cb1463140d9deb3462f0d7565b.tar.gz
Adjustment for fix for Bug#11758196
log_buffer_extend() should fill the new buffer with 0.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/log/log0log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/log/log0log.c b/storage/innobase/log/log0log.c
index 046c494c99d..eacee12a2d4 100644
--- a/storage/innobase/log/log0log.c
+++ b/storage/innobase/log/log0log.c
@@ -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;