summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2001-07-11 19:29:23 -0600
committersasha@mysql.sashanet.com <>2001-07-11 19:29:23 -0600
commit21a8aaa29d596738c5f60f0973a91548d9d5019a (patch)
tree55c353c4e3afb198a61de2adba223531191957c6 /sql/sql_repl.cc
parentb6273bfce0cb2d02b43aa2d8f0c034ca7bee0020 (diff)
downloadmariadb-git-21a8aaa29d596738c5f60f0973a91548d9d5019a.tar.gz
fixed race condition in automatic binlog rotation
remove extension from binary log if the user specifies one to avoid non-rotatable logs fixed possible use of unitialized IO_CACHE in debug mode
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index b0c7e64a5e0..3cb805ed796 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -274,6 +274,7 @@ void mysql_binlog_send(THD* thd, char* log_ident, ulong pos, ushort flags)
int left_events = max_binlog_dump_events;
#endif
DBUG_ENTER("mysql_binlog_send");
+ bzero((char*) &log,sizeof(log));
#ifndef DBUG_OFF
if (opt_sporadic_binlog_dump_fail && (binlog_dump_count++ % 2))
@@ -283,7 +284,6 @@ void mysql_binlog_send(THD* thd, char* log_ident, ulong pos, ushort flags)
}
#endif
- bzero((char*) &log,sizeof(log));
if(!mysql_bin_log.is_open())
{