Skip to content

Commit

Permalink
GEODE-2816: Redundancy recovery inititated even if redundancy set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
nabarunnag committed Apr 26, 2017
1 parent 13824f4 commit 7034078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ public void scheduleRedundancyRecovery(Object failedMemId) {
delay = this.prRegion.getPartitionAttributes().getRecoveryDelay();
movePrimaries = false;
}
final boolean requiresRedundancyRecovery = delay >= 0 && redundantCopies > 0;
final boolean requiresRedundancyRecovery = delay >= 0;

if (!requiresRedundancyRecovery) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -958,10 +958,7 @@ private synchronized boolean initPRInternals(InternalRegionArguments internalReg
try {
if (storesData) {
this.redundancyProvider.scheduleCreateMissingBuckets();

if (this.redundantCopies > 0) {
this.redundancyProvider.startRedundancyRecovery();
}
this.redundancyProvider.startRedundancyRecovery();
}
} catch (RegionDestroyedException rde) {
// Do nothing.
Expand Down

0 comments on commit 7034078

Please sign in to comment.