Skip to content

Commit

Permalink
Moved readLedgerMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
shustsud committed Oct 21, 2021
1 parent cb3452b commit 728fbba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ private Set<Long> removeOverReplicatedledgers(Set<Long> bkActiveledgers, final G
// this is to reduce the number of lock node creations and deletions in ZK.
// the ensemble check is done again after the lock node is created.
// also, check if the ledger is being replicated already by the replication worker
if (!isNotBookieIncludedInLedgerEnsembles(ledgerManager.readLedgerMetadata(ledgerId).get())
|| lum.isLedgerBeingReplicated(ledgerId)) {
Versioned<LedgerMetadata> preCheckMetadata = ledgerManager.readLedgerMetadata(ledgerId).get();
if (!isNotBookieIncludedInLedgerEnsembles(preCheckMetadata) || lum.isLedgerBeingReplicated(ledgerId)) {
latch.countDown();
continue;
}
Expand Down

0 comments on commit 728fbba

Please sign in to comment.