if (null == ledger) {
deleteLedgersAndUpdateLedgersRange(topic, ledgersToDelete, ledgersDeleted);
return;
}
bk.asyncDeleteLedger(ledger, new DeleteCallback() {
@Override
public void deleteComplete(int rc, Object ctx) {
if (BKException.Code.NoSuchLedgerExistsException == rc ||
BKException.Code.OK == rc) {
ledgersDeleted.add(ledger);