List:Commits« Previous MessageNext Message »
From:msvensson Date:April 27 2007 1:33pm
Subject:bk commit into 5.0 tree (msvensson:1.2460)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-04-27 15:33:48+02:00, msvensson@stripped +2 -0
  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
    

  sql/log.cc@stripped, 2007-04-27 15:33:46+02:00, msvensson@stripped +1 -1
    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
      

  sql/mysqld.cc@stripped, 2007-04-27 15:33:46+02:00, msvensson@stripped +1 -1
    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 is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	pilot.blaudden
# Root:	/home/msvensson/mysql/mysql-5.0-maint

--- 1.209/sql/log.cc	2007-04-12 11:46:06 +02:00
+++ 1.210/sql/log.cc	2007-04-27 15:33:46 +02:00
@@ -1784,7 +1784,7 @@ void MYSQL_LOG::rotate_and_purge(uint fl
 #ifdef HAVE_REPLICATION
     if (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)
         purge_logs_before_date(purge_time);
     }

--- 1.607/sql/mysqld.cc	2007-04-23 20:38:38 +02:00
+++ 1.608/sql/mysqld.cc	2007-04-27 15:33:46 +02:00
@@ -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);
   }
Thread
bk commit into 5.0 tree (msvensson:1.2460)msvensson27 Apr