1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix for embeded library compile

This commit is contained in:
unknown
2003-03-13 14:12:28 +04:00
parent 4901295af1
commit 9fb88bfb14
3 changed files with 6 additions and 0 deletions

View File

@@ -3940,12 +3940,14 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables)
mysql_log.new_file(1);
mysql_update_log.new_file(1);
mysql_bin_log.new_file(1);
#ifdef HAVE_REPLICATION
if (expire_logs_days)
{
long purge_time= time(0) - expire_logs_days*24*60*60;
if (purge_time >= 0)
mysql_bin_log.purge_logs_before_date(thd, purge_time);
}
#endif
mysql_slow_log.new_file(1);
if (ha_flush_logs())
result=1;