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

Added 'PURGE LOGS BEFORE' command

Added expire-logs-days option
This commit is contained in:
gluh@gluh.mysql.r18.ru
2003-03-11 13:49:06 +04:00
parent 2022b7b68f
commit e7f4bf5b27
8 changed files with 42 additions and 35 deletions

View File

@@ -3813,7 +3813,7 @@ 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);
if (~expire_logs_days)
if (expire_logs_days)
{
long purge_time= time(0) - expire_logs_days*24*60*60;
if (purge_time >= 0)