List:Commits« Previous MessageNext Message »
From:David Li Date:September 1 2006 7:39am
Subject:bk commit into 5.0 tree (dli:1.2253)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of dli. When dli 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, 2006-09-01 15:39:08+08:00, dli@stripped +2 -0
  Merge dev3-76.dev.cn.tlan:/home/dli/mysql/mysql-4.1/mysql-4.1-bug-21345
  into  dev3-76.dev.cn.tlan:/home/dli/mysql/mysql-5.0/mysql-5.0-bug-21345
  MERGE: 1.1616.2144.181

  ndb/include/util/File.hpp@stripped, 2006-09-01 15:39:04+08:00, dli@stripped +0 -0
    Auto merged
    MERGE: 1.4.1.1

  ndb/src/common/util/File.cpp@stripped, 2006-09-01 15:39:04+08:00, dli@stripped +0 -0
    Auto merged
    MERGE: 1.9.1.1

# 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:	dli
# Host:	dev3-76.dev.cn.tlan
# Root:	/home/dli/mysql/mysql-5.0/mysql-5.0-bug-21345/RESYNC

--- 1.5/ndb/include/util/File.hpp	2006-09-01 15:39:13 +08:00
+++ 1.6/ndb/include/util/File.hpp	2006-09-01 15:39:13 +08:00
@@ -29,6 +29,14 @@
 {
 public:
   /**
+   * Returns time for last contents modification of a file.
+   *
+   * @param aFileName a filename to check.
+   * @return the time for last contents modificaton of the file.
+   */
+  static time_t mtime(const char* aFileName);      
+
+  /**
    * Returns true if the file exist.
    *
    * @param aFileName a filename to check.

--- 1.10/ndb/src/common/util/File.cpp	2006-09-01 15:39:13 +08:00
+++ 1.11/ndb/src/common/util/File.cpp	2006-09-01 15:39:13 +08:00
@@ -24,6 +24,18 @@
 //
 // PUBLIC
 //
+time_t 
+File_class::mtime(const char* aFileName)
+{
+  MY_STAT stmp;
+  time_t rc = 0;
+
+  if (my_stat(aFileName, &stmp, MYF(0)) != NULL) {
+    rc = stmp.st_mtime;
+  }
+
+  return rc;
+}
 
 bool 
 File_class::exists(const char* aFileName)
Thread
bk commit into 5.0 tree (dli:1.2253)David Li1 Sep