Skip to content

Commit

Permalink
Fix can't end problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Feb 26, 2024
1 parent 317f9e1 commit aecae1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private static void readLedger(ClientConfiguration conf, long ledgerId, byte[] p
lh = bk.openLedgerNoRecovery(ledgerId, BookKeeper.DigestType.CRC32,
passwd);
long lastConfirmed = Math.min(lh.getLastAddConfirmed(), absoluteLimit);
if (lastConfirmed <= lastRead) {
if (lastConfirmed <= lastRead + 1) {
nochange++;
if (nochange == 10) {
break;
Expand Down

0 comments on commit aecae1a

Please sign in to comment.