BewareMyPower commented on a change in pull request #11621: URL: https://github.com/apache/pulsar/pull/11621#discussion_r685887182
########## File path: managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java ########## @@ -3202,8 +3203,9 @@ public PositionImpl getPreviousPosition(PositionImpl position) { return PositionImpl.get(position.getLedgerId(), position.getEntryId() - 1); } + final ConcurrentNavigableMap<Long, LedgerInfo> ledgersCopied = new ConcurrentSkipListMap<>(ledgers); Review comment: Since `ledgersCopied` is only a local variable, it's not necessary to use a concurrent data structure. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org