소스 검색

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

Surendra Singh Lilhore 6 년 전
부모
커밋
763e96ea2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java

+ 1 - 1
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");
     }