Skip to content

Commit

Permalink
Add any necessary comments and change the code style
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyanlei-8130 committed Jul 20, 2023
1 parent a4b76d3 commit db14c0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2866,6 +2866,8 @@ public boolean checkBlockReportLease(BlockReportContext context,
* The given storage is reporting all its blocks.
* Update the (storage{@literal -->}block list) and
* (block{@literal -->}storage list) maps.
* totalReportNum -> totalStorageReportsNum
* currentReportNum -> currentStorageReportIndex
*
* @return true if all known storages of the given DN have finished reporting.
* @throws IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ public DatanodeCommand blockReport(final DatanodeRegistration nodeReg,
final int index = r;
noStaleStorages = bm.runBlockOp(() ->
bm.processReport(nodeReg, reports[index].getStorage(),
blocks, context, reports.length, index+1));
blocks, context, reports.length, index + 1));
}
} else {
throw new InvalidBlockReportLeaseException(context.getReportId(), context.getLeaseId());
Expand Down

0 comments on commit db14c0a

Please sign in to comment.