private void removeRecordStoresHavingLesserBackupCountThan(int partitionId, int thresholdReplicaIndex) { if (thresholdReplicaIndex < 0) { mapServiceContext.removeRecordStoresFromPartitionMatchingWith(allRecordStores(), partitionId, false, true); } else { mapServiceContext.removeRecordStoresFromPartitionMatchingWith(lesserBackupMapsThen(thresholdReplicaIndex), partitionId, false, true); } }
private void removeRecordStoresHavingLesserBackupCountThan(int partitionId, int thresholdReplicaIndex) { if (thresholdReplicaIndex < 0) { mapServiceContext.removeRecordStoresFromPartitionMatchingWith(allRecordStores(), partitionId, false, true); } else { mapServiceContext.removeRecordStoresFromPartitionMatchingWith(lesserBackupMapsThen(thresholdReplicaIndex), partitionId, false, true); } }