coderzc commented on code in PR #17164:
URL: https://github.com/apache/pulsar/pull/17164#discussion_r973516304


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java:
##########
@@ -175,6 +177,8 @@ public class ManagedCursorImpl implements ManagedCursor {
     // Stat of the cursor z-node
     private volatile Stat cursorLedgerStat;
 
+    private volatile ManagedCursorInfo managedCursorInfo;

Review Comment:
   > could we add the comments on here or asyncUpdateCursorInfo method to alter 
other contributors won't forget to update it?
   
   I package `updateCursorLedgerStat` method to update `cursorLedgerStat` and 
`managedCursorInfo` at the same tim. Also, add some notes to remind other 
contributors don't update `cursorLedgerStat` alone.
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to