summaryrefslogtreecommitdiff
path: root/ndb/include
diff options
context:
space:
mode:
authorunknown <dli@dev3-76.dev.cn.tlan>2006-08-29 09:55:07 +0800
committerunknown <dli@dev3-76.dev.cn.tlan>2006-08-29 09:55:07 +0800
commit458cc4b9ac179037c7b6fc7188bf81434361e471 (patch)
tree6e26cba0fff57a0e7b2d1e7d6059843cd84e0bfd /ndb/include
parent70269a091e0fe4d7331ddcace4d248947e304fcb (diff)
downloadmariadb-git-458cc4b9ac179037c7b6fc7188bf81434361e471.tar.gz
Fix for bug #21345: Error in cluster logfile rotation.
Fixed the cluster logfile rotation code, let the cluster log file be renamed correctly when the main log file exceeds the configured maximum size. ndb/include/util/File.hpp: Fix for bug #21345: Error in cluster logfile rotation. ndb/src/common/logger/FileLogHandler.cpp: Fix for bug #21345: Error in cluster logfile rotation. ndb/src/common/util/File.cpp: Fix for bug #21345: Error in cluster logfile rotation.
Diffstat (limited to 'ndb/include')
-rw-r--r--ndb/include/util/File.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ndb/include/util/File.hpp b/ndb/include/util/File.hpp
index 3ed0ad7a6f9..52b00f575f4 100644
--- a/ndb/include/util/File.hpp
+++ b/ndb/include/util/File.hpp
@@ -29,6 +29,14 @@ class File_class
{
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.