Browse Source

HADOOP-3794. Return modification time instead of zero for KosmosFileSystem. Contributed by Sriram Rao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@678594 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 17 years ago
parent
commit
20f969a146
2 changed files with 5 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java

+ 3 - 0
CHANGES.txt

@@ -774,6 +774,9 @@ Release 0.18.0 - Unreleased
 
     HADOOP-3798. Fix tests compilation. (Mukund Madhugiri via omalley)
 
+    HADOOP-3794. Return modification time instead of zero for KosmosFileSystem.
+    (Sriram Rao via cdouglas)
+
 Release 0.17.2 - Unreleased
 
   BUG FIXES

+ 2 - 1
src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java

@@ -168,7 +168,8 @@ public class KosmosFileSystem extends FileSystem {
         }
         if (kfsImpl.isDirectory(srep)) {
             // System.out.println("Status of path: " + path + " is dir");
-            return new FileStatus(0, true, 1, 0, 0, path.makeQualified(this));
+            return new FileStatus(0, true, 1, 0, kfsImpl.getModificationTime(srep), 
+                                  path.makeQualified(this));
         } else {
             // System.out.println("Status of path: " + path + " is file");
             return new FileStatus(kfsImpl.filesize(srep), false,