Przeglądaj źródła

HADOOP-7162. Rmove a duplicated call FileSystem.listStatus(..) in FsShell. Contributed by Alexey Diomin

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21@1078150 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 14 lat temu
rodzic
commit
59f398e988
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/fs/FsShell.java

+ 3 - 0
CHANGES.txt

@@ -35,6 +35,9 @@ Release 0.21.1 - Unreleased
 
     HADOOP-7120. Fix a syntax error in test-patch.sh.  (szetszwo)
 
+    HADOOP-7162. Rmove a duplicated call FileSystem.listStatus(..) in FsShell.
+    (Alexey Diomin via szetszwo)
+
 Release 0.21.0 - 2010-08-13
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/java/org/apache/hadoop/fs/FsShell.java

@@ -539,7 +539,7 @@ public class FsShell extends Configured implements Tool {
       setFileReplication(src, srcFs, newRep, waitingList);
       return;
     }
-    FileStatus items[] = srcFs.listStatus(src);
+    FileStatus items[];
     try {
       items = srcFs.listStatus(src);
     } catch (FileNotFoundException fnfe) {