poorbarcode commented on code in PR #4613:
URL: https://github.com/apache/bookkeeper/pull/4613#discussion_r2314886882
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java:
##########
@@ -174,9 +195,21 @@ private void openWithMetadata(Versioned<LedgerMetadata>
versionedMetadata) {
}
// get the ledger metadata back
+ final boolean watchImmediately = !doRecovery || metadata.isClosed();
Review Comment:
Changed the logic to `boolean watchImmediately = !doRecovery ||
(keepUpdateMetadata && metadata.isClosed())`, and added more code comments
--
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]