summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-07-10 20:35:42 -0600
committerunknown <sasha@mysql.sashanet.com>2001-07-10 20:35:42 -0600
commitbc059e42c3ae50e467603c17b761d05539fecfbe (patch)
tree9935b55f42587b115a3248e3180422739747ba2d /sql/sql_repl.cc
parent586648ccc20acd29f4d7f072416ed36f0d9b3a3e (diff)
downloadmariadb-git-bc059e42c3ae50e467603c17b761d05539fecfbe.tar.gz
mysql-test/t/rpl_sporadic_master.test
use truncate table sql/slave.cc fixed race condition on server shutdown sql/sql_repl.cc fixed uninitialized use of io_cache mysql-test/t/rpl_sporadic_master.test: use truncate table sql/slave.cc: fixed race condition on server shutdown sql/sql_repl.cc: fixed uninitialized use of io_cache
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 4841da1b0a2..9c1fbbe4ac9 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -350,6 +350,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))
@@ -359,7 +360,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())
{