summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <nick@mysql.com>2002-10-07 15:42:10 -0600
committerunknown <nick@mysql.com>2002-10-07 15:42:10 -0600
commit642b759333e1c4d210b2a9b6687c1021324c7627 (patch)
tree9997d085fbe0c80ca2c5861d96de3a8da03bbae6 /sql/sql_parse.cc
parent18585d178d6cbf8364c11da5973531681ac26879 (diff)
downloadmariadb-git-642b759333e1c4d210b2a9b6687c1021324c7627.tar.gz
fixed race that caused sig11s on simultaneous FLUSH LOGS
(possibly also fixes binlog filename corruption problems--hasn't been reproduced since) sql/log.cc: Fixed race caused by calling MYSQL_LOG::is_open() outside of critical section. sql/sql_parse.cc: added missing args to calls to MYSQL_LOG::new_file(bool) BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 1dc97d53d02..1803568f880 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2839,10 +2839,10 @@ bool reload_acl_and_cache(THD *thd, uint options, TABLE_LIST *tables)
}
if (options & REFRESH_LOG)
{
- mysql_log.new_file();
- mysql_update_log.new_file();
- mysql_bin_log.new_file();
- mysql_slow_log.new_file();
+ mysql_log.new_file(0);
+ mysql_update_log.new_file(0);
+ mysql_bin_log.new_file(0);
+ mysql_slow_log.new_file(0);
if (ha_flush_logs())
result=1;
}