HDFS-7872. Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks. Contributed by Takuya Fukudome.

This commit is contained in:
Jing Zhao 2015-03-05 16:44:38 -08:00 committed by Zhe Zhang
parent c0945a8971
commit 39a0a85fb7

View File

@ -900,8 +900,8 @@ public void dumpTreeRecursively(PrintWriter out, StringBuilder prefix,
out.print(", fileSize=" + computeFileSize(snapshotId)); out.print(", fileSize=" + computeFileSize(snapshotId));
// only compare the first block // only compare the first block
out.print(", blocks="); out.print(", blocks=");
out.print(blocks == null || blocks.length == 0? null: blocks[0]); BlockInfo[] blks = getBlocks();
// TODO print striped blocks out.print(blks == null || blks.length == 0? null: blks[0]);
out.println(); out.println();
} }