summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2005-01-01 13:49:53 +0200
committerunknown <heikki@hundin.mysql.fi>2005-01-01 13:49:53 +0200
commit56db297d002150216c1085550b39a8bec65caf64 (patch)
tree39bee6759208a8569eec16b20e12240971ba326e /innobase
parentcd47cb56fd76a47def597e7b486b89c65a65481d (diff)
downloadmariadb-git-56db297d002150216c1085550b39a8bec65caf64.tar.gz
log0recv.c:
Fix a wrong memset in InnoDB Hot Backup code; the bug probably did not affect anything since we do not assume that the header of a log file is filled with zeros before writing the header info there; the bug found by Felix von Leitner innobase/log/log0recv.c: Fix a wrong memset in InnoDB Hot Backup code; the bug probably did not affect anything since we do not assume that the header of a log file is filled with zeros before writing the header info there; the bug found by Felix von Leitner
Diffstat (limited to 'innobase')
-rw-r--r--innobase/log/log0recv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/innobase/log/log0recv.c b/innobase/log/log0recv.c
index 10f921bb1f0..ae84f085523 100644
--- a/innobase/log/log0recv.c
+++ b/innobase/log/log0recv.c
@@ -2990,8 +2990,7 @@ recv_reset_log_files_for_backup(
memcpy(name + log_dir_len, logfilename, sizeof logfilename);
buf = ut_malloc(LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE);
- memset(buf, LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE, '\0');
-
+ memset(buf, '\0', LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE);
for (i = 0; i < n_log_files; i++) {