Skip to content

Commit

Permalink
Fix checkstyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinshakil committed Sep 28, 2023
1 parent da3f654 commit d647921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ private void expandSnapshotDirectories(long remainNum) throws IOException {
if (isBufferLimitCrossed(ratisByteLimit, consumedSize,
request.getSerializedSize())) {
if (purgePathRequestList.size() != 0) {
// if message buffer reaches max limit, avoid sending further
// if message buffer reaches max limit,
// avoid sending further
remainNum = 0;
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ private long handleDirectoryCleanUp(
long startTime = Time.monotonicNow();
deletedDirIterator.seek(dbBucketKeyForDir);

while (deletedDirIterator.hasNext()) {
while (remainNum > 0 && deletedDirIterator.hasNext()) {
Table.KeyValue<String, OmKeyInfo> deletedDir =
deletedDirIterator.next();
String deletedDirKey = deletedDir.getKey();
Expand Down

0 comments on commit d647921

Please sign in to comment.