mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
Remove dangerous "remove warning" hack, cast to long
will truncate the time value on systems where "long" are 32bit, instead use time_t as datatype
This commit is contained in:
@@ -3271,7 +3271,7 @@ server.");
|
||||
#ifdef HAVE_REPLICATION
|
||||
if (opt_bin_log && expire_logs_days)
|
||||
{
|
||||
long purge_time= (long) (time(0) - expire_logs_days*24*60*60);
|
||||
time_t purge_time= time(0) - expire_logs_days*24*60*60;
|
||||
if (purge_time >= 0)
|
||||
mysql_bin_log.purge_logs_before_date(purge_time);
|
||||
}
|
||||
|
Reference in New Issue
Block a user