hangc0276 commented on code in PR #16420:
URL: https://github.com/apache/pulsar/pull/16420#discussion_r914859005
##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java:
##########
@@ -1494,6 +1493,7 @@ public void operationComplete(Void v, Stat stat) {
log.debug("[{}] Updating of ledgers list after create
complete. version={}", name, stat);
}
ledgersStat = stat;
+ currentLedger = lh;
Review Comment:
Move
```
currentLedgerEntries = 0;
currentLedgerSize = 0;
```
here?
--
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]