HDFS-17144. Remove incorrect comment in method storeAllocatedBlock. (#5932)

Signed-off-by: Tao Li <tomscut@apache.org>
This commit is contained in:
hfutatzhanghb 2023-08-08 09:26:51 +08:00 committed by GitHub
parent bc48e5cbe8
commit b5b9a81538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,6 @@ static LocatedBlock storeAllocatedBlock(FSNamesystem fsn, String src,
fsn.commitOrCompleteLastBlock(pendingFile, fileState.iip, fsn.commitOrCompleteLastBlock(pendingFile, fileState.iip,
ExtendedBlock.getLocalBlock(previous)); ExtendedBlock.getLocalBlock(previous));
// allocate new block, record block locations in INode.
final BlockType blockType = pendingFile.getBlockType(); final BlockType blockType = pendingFile.getBlockType();
// allocate new block, record block locations in INode. // allocate new block, record block locations in INode.
Block newBlock = fsn.createNewBlock(blockType); Block newBlock = fsn.createNewBlock(blockType);