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 su...@apache.org on 2018/12/22 07:06:21 UTC

hadoop git commit: HDFS-14166. Ls with -e option not giving the result in proper format. Contributed by Shubham Dewan.

Repository: hadoop
Updated Branches:
  refs/heads/trunk e98e963e5 -> 763e96ea2


HDFS-14166. Ls with -e option not giving the result in proper format. Contributed by Shubham Dewan.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/763e96ea
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/763e96ea
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/763e96ea

Branch: refs/heads/trunk
Commit: 763e96ea2b18f584ba102b68271263be8c5d621c
Parents: e98e963
Author: Surendra Singh Lilhore <su...@apache.org>
Authored: Sat Dec 22 12:22:24 2018 +0530
Committer: Surendra Singh Lilhore <su...@apache.org>
Committed: Sat Dec 22 12:22:24 2018 +0530

----------------------------------------------------------------------
 .../hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/763e96ea/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
index 19383d0..32084fc 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
@@ -345,7 +345,7 @@ class Ls extends FsCommand {
       int maxEC = 0;
       for (PathData item : items) {
           ContentSummary contentSummary = item.fs.getContentSummary(item.path);
-          maxEC=maxLength(maxEC,contentSummary.getErasureCodingPolicy().length());
+        maxEC = maxLength(maxEC, contentSummary.getErasureCodingPolicy());
       }
       fmt.append((maxEC > 0) ? "%-" + maxEC + "s " : "%s");
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org