瀏覽代碼

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 年之前
父節點
當前提交
0025080bcf
共有 4 個文件被更改,包括 4 次插入4 次删除
  1. 3 0
      CHANGES.txt
  2. 二進制
      lib/kfs-0.1.3.jar
  3. 二進制
      lib/kfs-0.1.jar
  4. 1 4
      src/java/org/apache/hadoop/fs/kfs/KFSImpl.java

+ 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
 

二進制
lib/kfs-0.1.3.jar


二進制
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 {