1
0
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:
unknown
2007-04-27 15:33:48 +02:00
parent 48a9d2c311
commit d446289fd6
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}