Skip to content

Commit

Permalink
when setExplicitLac is called the ledgersCount should increased (apac…
Browse files Browse the repository at this point in the history
…he#4138)

The **ledgersCount.incrementAndGet** should be called in **setExplicitLac** , just like in **setFenced** and **setLimbo**.
  • Loading branch information
liubingxing authored Dec 11, 2023
1 parent a8d97f6 commit 5be03cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ void setExplicitLac(long ledgerId, ByteBuf lac) throws IOException {

if (ledgers.put(ledgerId, newLedgerData) == null) {
// Ledger had been deleted
ledgersCount.incrementAndGet();
return;
} else if (log.isDebugEnabled()) {
log.debug("Set explicitLac on ledger {}", ledgerId);
Expand Down

0 comments on commit 5be03cf

Please sign in to comment.