HDFS-14166. Ls with -e option not giving the result in proper format. Contributed by Shubham Dewan.
This commit is contained in:
parent
e98e963e51
commit
763e96ea2b
@ -345,7 +345,7 @@ private void adjustColumnWidths(PathData items[]) throws IOException {
|
||||
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user