hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r678594 - in /hadoop/core/branches/branch-0.18: CHANGES.txt src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
Date Mon, 21 Jul 2008 23:23:08 GMT
Author: cdouglas
Date: Mon Jul 21 16:23:08 2008
New Revision: 678594

URL: http://svn.apache.org/viewvc?rev=678594&view=rev
Log:
HADOOP-3794. Return modification time instead of zero for KosmosFileSystem. Contributed by
Sriram Rao.

Modified:
    hadoop/core/branches/branch-0.18/CHANGES.txt
    hadoop/core/branches/branch-0.18/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java

Modified: hadoop/core/branches/branch-0.18/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/CHANGES.txt?rev=678594&r1=678593&r2=678594&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.18/CHANGES.txt Mon Jul 21 16:23:08 2008
@@ -774,6 +774,9 @@
 
     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

Modified: hadoop/core/branches/branch-0.18/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java?rev=678594&r1=678593&r2=678594&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
(original)
+++ hadoop/core/branches/branch-0.18/src/core/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
Mon Jul 21 16:23:08 2008
@@ -168,7 +168,8 @@
         }
         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, 



Mime
View raw message