solve merge conflicts with Custom Replication PR #9710
This commit is contained in:
parent
303248b0b7
commit
2b2e465f26
|
@ -1413,7 +1413,7 @@ DataDistributionTracker::DataDistributionTracker(DataDistributionTrackerInitPara
|
|||
output(params.output), shardsAffectedByTeamFailure(params.shardsAffectedByTeamFailure),
|
||||
physicalShardCollection(params.physicalShardCollection), readyToStart(params.readyToStart),
|
||||
anyZeroHealthyTeams(params.anyZeroHealthyTeams), trackerCancelled(params.trackerCancelled),
|
||||
ddTenantCache(params.ddTenantCache), customReplication(params.customReplication) {}
|
||||
ddTenantCache(params.ddTenantCache) {}
|
||||
|
||||
DataDistributionTracker::~DataDistributionTracker() {
|
||||
if (trackerCancelled) {
|
||||
|
@ -1428,6 +1428,7 @@ struct DataDistributionTrackerImpl {
|
|||
state Future<Void> loggingTrigger = Void();
|
||||
state Future<Void> readHotDetect = readHotDetector(self);
|
||||
state Reference<EventCacheHolder> ddTrackerStatsEventHolder = makeReference<EventCacheHolder>("DDTrackerStats");
|
||||
|
||||
try {
|
||||
wait(trackInitialShards(self, initData));
|
||||
initData.clear(); // Release reference count.
|
||||
|
@ -1485,6 +1486,7 @@ Future<Void> DataDistributionTracker::run(Reference<DataDistributionTracker> sel
|
|||
self->getTopKMetrics = getTopKMetrics;
|
||||
self->getShardMetricsList = getShardMetricsList;
|
||||
self->averageShardBytes = getAverageShardBytes;
|
||||
self->customReplication = initData->customReplication;
|
||||
return holdWhile(self, DataDistributionTrackerImpl::run(self.getPtr(), initData));
|
||||
}
|
||||
|
||||
|
|
|
@ -105,6 +105,8 @@ struct DataDistributionTracker : public IDDShardTracker, ReferenceCounted<DataDi
|
|||
|
||||
Optional<Reference<TenantCache>> ddTenantCache;
|
||||
|
||||
Reference<KeyRangeMap<int>> customReplication;
|
||||
|
||||
DataDistributionTracker() = default;
|
||||
|
||||
~DataDistributionTracker() override;
|
||||
|
|
Loading…
Reference in New Issue