Skip to content

Commit

Permalink
code clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Jun 6, 2022
1 parent 9648be4 commit a07faf0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ public ManagedLedgerImpl(ManagedLedgerFactoryImpl factory, BookKeeper bookKeeper
}
this.inactiveLedgerRollOverTimeMs = config.getInactiveLedgerRollOverTimeMs();
this.managedTrash = config.isSupportTwoPhaseDeletion()
? new ManagedTrashImpl(ManagedTrash.ManagedType.MANAGED_LEDGER, name, metadataStore, config, scheduledExecutor,
executor, bookKeeper) : new ManagedTrashDisableImpl();
? new ManagedTrashImpl(ManagedTrash.ManagedType.MANAGED_LEDGER, name, metadataStore, config,
scheduledExecutor, executor, bookKeeper) : new ManagedTrashDisableImpl();
}

synchronized void initialize(final ManagedLedgerInitializeLedgerCallback callback, final Object ctx) {
Expand Down Expand Up @@ -2688,7 +2688,8 @@ private CompletableFuture<?> asyncUpdateTrashData(Collection<Long> deletableLedg
managedTrash.appendLedgerTrashData(ledgerId, null, ManagedTrash.LedgerType.LEDGER);
}
for (Long ledgerId : deletableOffloadedLedgerIds) {
managedTrash.appendLedgerTrashData(ledgerId, ledgers.get(ledgerId), ManagedTrash.LedgerType.OFFLOAD_LEDGER);
managedTrash.appendLedgerTrashData(ledgerId, ledgers.get(ledgerId),
ManagedTrash.LedgerType.OFFLOAD_LEDGER);
}
future.complete(null);
} catch (ManagedLedgerException e) {
Expand Down

0 comments on commit a07faf0

Please sign in to comment.