codelipenghui commented on a change in pull request #5942: Avoid using same
OpAddEntry between different ledger handles
URL: https://github.com/apache/pulsar/pull/5942#discussion_r362360828
##########
File path:
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
##########
@@ -43,12 +43,14 @@
*
*/
class OpAddEntry extends SafeRunnable implements AddCallback, CloseCallback {
- private ManagedLedgerImpl ml;
+ protected ManagedLedgerImpl ml;
LedgerHandle ledger;
private long entryId;
@SuppressWarnings("unused")
- private volatile AddEntryCallback callback;
+ private static final AtomicReferenceFieldUpdater<OpAddEntry,
AddEntryCallback> callbackUpdater =
Review comment:
I just copy the updater close to the field
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services