ivankelly commented on a change in pull request #526: ISSUE 525 Refactor
PerChannelBookieClient [WIP]
URL: https://github.com/apache/bookkeeper/pull/526#discussion_r141731760
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
##########
@@ -654,42 +624,28 @@ public void readEntryAndFenceLedger(final long ledgerId,
byte[] masterKey,
}
final CompletionKey completionKey = completion;
- if (completionObjects.putIfAbsent(completionKey, new
ReadCompletion(this, readEntryOpLogger, cb,
- ctx, ledgerId, entryId, scheduleTimeout(completionKey,
readEntryTimeout))) != null) {
+ if (completionObjects.putIfAbsent(
Review comment:
computeIfAbsent would still need a Function allocated, so you don't really
save anything.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services