From 1f41db29053228298bb80ffacbda2baa255820a0 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 11 Jul 2001 19:29:23 -0600 Subject: 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 sql/log.cc: fixed race condition in automatic binlog rotation sql/mysqld.cc: remove extension from binary log if the user specifies one to avoid non-rotatable logs sql/slave.cc: fixed race condition with slave thread during server shutdown sql/sql_class.h: new_file() needed an argument to know if it was called withing the log mutex or not sql/sql_repl.cc: fixed possible use of unitialized IO_CACHE in debug mode --- sql/sql_repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_repl.cc') 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()) { -- cgit v1.2.1