@@ -59,7 +59,7 @@ struct BackfillState {
5959 struct RequestDone : sc::event<RequestDone> {
6060 };
6161
62- struct CancelBackfill : sc::event<CancelBackfill > {
62+ struct SuspendBackfill : sc::event<SuspendBackfill > {
6363 };
6464
6565 struct ThrottleAcquired : sc::event<ThrottleAcquired> {
@@ -212,14 +212,14 @@ struct BackfillState {
212212 sc::custom_reaction<ObjectPushed>,
213213 sc::custom_reaction<PrimaryScanned>,
214214 sc::transition<RequestDone, Done>,
215- sc::custom_reaction<CancelBackfill >,
215+ sc::custom_reaction<SuspendBackfill >,
216216 sc::custom_reaction<Triggered>,
217217 sc::transition<sc::event_base, Crashed>>;
218218 explicit PrimaryScanning (my_context);
219219 sc::result react (ObjectPushed);
220220 // collect scanning result and transit to Enqueuing.
221221 sc::result react (PrimaryScanned);
222- sc::result react (CancelBackfill );
222+ sc::result react (SuspendBackfill );
223223 sc::result react (Triggered);
224224 };
225225
@@ -228,7 +228,7 @@ struct BackfillState {
228228 using reactions = boost::mpl::list<
229229 sc::custom_reaction<ObjectPushed>,
230230 sc::custom_reaction<ReplicaScanned>,
231- sc::custom_reaction<CancelBackfill >,
231+ sc::custom_reaction<SuspendBackfill >,
232232 sc::custom_reaction<Triggered>,
233233 sc::transition<RequestDone, Done>,
234234 sc::transition<sc::event_base, Crashed>>;
@@ -237,7 +237,7 @@ struct BackfillState {
237237 // to Enqueuing will happen.
238238 sc::result react (ObjectPushed);
239239 sc::result react (ReplicaScanned);
240- sc::result react (CancelBackfill );
240+ sc::result react (SuspendBackfill );
241241 sc::result react (Triggered);
242242
243243 // indicate whether a particular peer should be scanned to retrieve
@@ -257,23 +257,23 @@ struct BackfillState {
257257 using reactions = boost::mpl::list<
258258 sc::custom_reaction<ObjectPushed>,
259259 sc::transition<RequestDone, Done>,
260- sc::custom_reaction<CancelBackfill >,
260+ sc::custom_reaction<SuspendBackfill >,
261261 sc::custom_reaction<Triggered>,
262262 sc::transition<ThrottleAcquired, Enqueuing>,
263263 sc::transition<sc::event_base, Crashed>>;
264264 explicit Waiting (my_context);
265265 sc::result react (ObjectPushed);
266- sc::result react (CancelBackfill );
266+ sc::result react (SuspendBackfill );
267267 sc::result react (Triggered);
268268 };
269269
270270 struct Done : sc::state<Done, BackfillMachine>,
271271 StateHelper<Done> {
272272 using reactions = boost::mpl::list<
273- sc::custom_reaction<CancelBackfill >,
273+ sc::custom_reaction<SuspendBackfill >,
274274 sc::transition<sc::event_base, Crashed>>;
275275 explicit Done (my_context);
276- sc::result react (CancelBackfill ) {
276+ sc::result react (SuspendBackfill ) {
277277 return discard_event ();
278278 }
279279 };
0 commit comments