@@ -140,28 +140,22 @@ class TBlobStorageGroupCollectGarbageRequest : public TBlobStorageGroupRequestAc
140
140
return ERequestType::CollectGarbage;
141
141
}
142
142
143
- TBlobStorageGroupCollectGarbageRequest (const TIntrusivePtr<TBlobStorageGroupInfo> &info,
144
- const TIntrusivePtr<TGroupQueues> &state, const TActorId &source,
145
- const TIntrusivePtr<TBlobStorageGroupProxyMon> &mon, TEvBlobStorage::TEvCollectGarbage *ev, ui64 cookie,
146
- NWilson::TTraceId traceId, TInstant now, TIntrusivePtr<TStoragePoolCounters> &storagePoolCounters)
147
- : TBlobStorageGroupRequestActor(info, state, mon, source, cookie,
148
- NKikimrServices::BS_PROXY_COLLECT, false , {}, now, storagePoolCounters, ev->RestartCounter,
149
- std::move (traceId), " DSProxy.CollectGarbage" , ev, std::move(ev->ExecutionRelay),
150
- NKikimrServices::TActivity::BS_GROUP_COLLECT_GARBAGE)
151
- , TabletId(ev->TabletId)
152
- , RecordGeneration(ev->RecordGeneration)
153
- , PerGenerationCounter(ev->PerGenerationCounter)
154
- , Channel(ev->Channel)
155
- , Deadline(ev->Deadline)
156
- , Keep(ev->Keep.Release())
157
- , DoNotKeep(ev->DoNotKeep.Release())
158
- , CollectGeneration(ev->CollectGeneration)
159
- , CollectStep(ev->CollectStep)
160
- , Hard(ev->Hard)
161
- , Collect(ev->Collect)
162
- , Decommission(ev->Decommission)
143
+ TBlobStorageGroupCollectGarbageRequest (TBlobStorageGroupCollectGarbageParameters& params)
144
+ : TBlobStorageGroupRequestActor(params)
145
+ , TabletId(params.Common.Event->TabletId)
146
+ , RecordGeneration(params.Common.Event->RecordGeneration)
147
+ , PerGenerationCounter(params.Common.Event->PerGenerationCounter)
148
+ , Channel(params.Common.Event->Channel)
149
+ , Deadline(params.Common.Event->Deadline)
150
+ , Keep(params.Common.Event->Keep.Release())
151
+ , DoNotKeep(params.Common.Event->DoNotKeep.Release())
152
+ , CollectGeneration(params.Common.Event->CollectGeneration)
153
+ , CollectStep(params.Common.Event->CollectStep)
154
+ , Hard(params.Common.Event->Hard)
155
+ , Collect(params.Common.Event->Collect)
156
+ , Decommission(params.Common.Event->Decommission)
163
157
, QuorumTracker(Info.Get())
164
- , StartTime(now )
158
+ , StartTime(params.Common.Now )
165
159
{}
166
160
167
161
void Bootstrap () override {
@@ -205,12 +199,8 @@ class TBlobStorageGroupCollectGarbageRequest : public TBlobStorageGroupRequestAc
205
199
}
206
200
};
207
201
208
- IActor* CreateBlobStorageGroupCollectGarbageRequest (const TIntrusivePtr<TBlobStorageGroupInfo> &info,
209
- const TIntrusivePtr<TGroupQueues> &state, const TActorId &source,
210
- const TIntrusivePtr<TBlobStorageGroupProxyMon> &mon, TEvBlobStorage::TEvCollectGarbage *ev,
211
- ui64 cookie, NWilson::TTraceId traceId, TInstant now, TIntrusivePtr<TStoragePoolCounters> &storagePoolCounters) {
212
- return new TBlobStorageGroupCollectGarbageRequest (info, state, source, mon, ev, cookie, std::move (traceId), now,
213
- storagePoolCounters);
202
+ IActor* CreateBlobStorageGroupCollectGarbageRequest (TBlobStorageGroupCollectGarbageParameters params) {
203
+ return new TBlobStorageGroupCollectGarbageRequest (params);
214
204
}
215
205
216
206
} // NKikimr
0 commit comments