Skip to content

Commit

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

Co-authored-by: wuzhanpeng <[email protected]>
  • Loading branch information
wuzhanpeng and wuzhanpeng authored Mar 26, 2021
1 parent fb6b4ea commit 1b8da92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,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 1b8da92

Please sign in to comment.