Skip to content

Commit

Permalink
bugfix for wrong timeunit in updating lastLedgerCreationInitiationTim…
Browse files Browse the repository at this point in the history
…estamp (#10049)

Co-authored-by: wuzhanpeng <wuzhanpeng@bigo.sg>
(cherry picked from commit 1b8da92)
  • Loading branch information
wuzhanpeng authored and codelipenghui committed Mar 30, 2021
1 parent 668c692 commit 5d00904
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ synchronized void ledgerClosed(final LedgerHandle lh) {

synchronized void createLedgerAfterClosed() {
STATE_UPDATER.set(this, State.CreatingLedger);
this.lastLedgerCreationInitiationTimestamp = System.nanoTime();
this.lastLedgerCreationInitiationTimestamp = System.currentTimeMillis();
mbean.startDataLedgerCreateOp();
asyncCreateLedger(bookKeeper, config, digestType, this, Collections.emptyMap());
}
Expand Down

0 comments on commit 5d00904

Please sign in to comment.