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
1 changed files with 2 additions and 2 deletions

View File

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