Pārlūkot izejas kodu

HADOOP-3410. Fix KFS implementation to return correct file modification time. Contributed by Sriram Rao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@662509 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 17 gadi atpakaļ
vecāks
revīzija
0025080bcf

+ 3 - 0
CHANGES.txt

@@ -368,6 +368,9 @@ Trunk (unreleased changes)
     HADOOP-3477. Fix build to not package contrib/*/bin twice in
     distributions.  (Adam Heath via cutting)
 
+    HADOOP-3410. Fix KFS implemenation to return correct file
+    modification time.  (Sriram Rao via cutting)
+
 
 Release 0.17.0 - 2008-05-18
 

BIN
lib/kfs-0.1.3.jar


BIN
lib/kfs-0.1.jar


+ 1 - 4
src/java/org/apache/hadoop/fs/kfs/KFSImpl.java

@@ -92,10 +92,7 @@ class KFSImpl implements IFSImpl {
     }
 
     public long getModificationTime(String path) throws IOException {
-        // Supporting this API requires changes to the Java-side of
-        // the KFS client API.  For now, return 0; in the next rev of
-        // KFS, we'll update the Java API.
-        return 0;
+        return kfsAccess.kfs_getModificationTime(path);
     }
 
     public FSDataOutputStream create(String path, short replication, int bufferSize) throws IOException {