Skip to content

Commit

Permalink
move log line into if block
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed May 16, 2024
1 parent 2697ae1 commit 317de60
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,19 @@ internal class ReconcilerInstance(

// Delete datasets until and advance target iterator until streams are aligned.
while (nextTargetDataset != null && comparableS3Id.compareTo(comparableTargetId!!, false) > 0) {
log.info(
"attempting to delete dataset {} because {} is lexicographically greater than {}. Presumably {} is not " +
"in MinIO",
comparableTargetId,
comparableS3Id,
comparableTargetId,
comparableTargetId
)

if (!slim)
if (!slim) {
log.info(
"attempting to delete dataset {} because {} is lexicographically greater than {}. Presumably {} is not " +
"in MinIO",
comparableTargetId,
comparableS3Id,
comparableTargetId,
comparableTargetId
)

tryDeleteDataset(targetDB, nextTargetDataset!!)
}

nextTargetDataset = if (targetIterator.hasNext()) targetIterator.next() else null
comparableTargetId = nextTargetDataset?.getComparableID()
}
Expand Down

0 comments on commit 317de60

Please sign in to comment.