diff options
author | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2013-09-30 15:02:54 +0900 |
---|---|---|
committer | Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> | 2013-09-30 15:02:54 +0900 |
commit | d4800a57badc79d380492810b648db6e52511e14 (patch) | |
tree | ccbc87cf59c1fb752b7d70c0bd171960075d93fc | |
parent | e64b9e12509f7fc800a55864c83ea26e0f51d515 (diff) | |
download | mariadb-git-d4800a57badc79d380492810b648db6e52511e14.tar.gz |
Adjustment for fix for Bug#11758196
log_buffer_extend() should fill the new buffer with 0.
-rw-r--r-- | storage/innobase/log/log0log.c | 1 |
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; |