You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sz...@apache.org on 2011/03/04 22:42:29 UTC

svn commit: r1078149 - in /hadoop/common/branches/branch-0.22: CHANGES.txt src/java/org/apache/hadoop/fs/FsShell.java

Author: szetszwo
Date: Fri Mar  4 21:42:29 2011
New Revision: 1078149

URL: http://svn.apache.org/viewvc?rev=1078149&view=rev
Log:
HADOOP-7162. Rmove a duplicated call FileSystem.listStatus(..) in FsShell.  Contributed by Alexey Diomin

Modified:
    hadoop/common/branches/branch-0.22/CHANGES.txt
    hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/common/branches/branch-0.22/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/CHANGES.txt?rev=1078149&r1=1078148&r2=1078149&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.22/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.22/CHANGES.txt Fri Mar  4 21:42:29 2011
@@ -460,6 +460,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

Modified: hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java?rev=1078149&r1=1078148&r2=1078149&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java (original)
+++ hadoop/common/branches/branch-0.22/src/java/org/apache/hadoop/fs/FsShell.java Fri Mar  4 21:42:29 2011
@@ -550,7 +550,7 @@ public class FsShell extends Configured 
       setFileReplication(src, srcFs, newRep, waitingList);
       return;
     }
-    FileStatus items[] = srcFs.listStatus(src);
+    FileStatus items[];
     try {
       items = srcFs.listStatus(src);
     } catch (FileNotFoundException fnfe) {