]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/backfill_state: discard CancelBackfill events when the 60485/head
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 25 Oct 2024 04:16:16 +0000 (12:16 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Fri, 25 Oct 2024 04:18:05 +0000 (12:18 +0800)
backfill is done

Fixes: https://tracker.ceph.com/issues/68719
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/backfill_state.h

index ddc0cbf73555731dec446cad62922ef8dbfedf0d..5e8ada5af0a0857d90fef7f3732a4e5858fd8c17 100644 (file)
@@ -285,8 +285,12 @@ public:
   struct Done : sc::state<Done, BackfillMachine>,
                 StateHelper<Done> {
     using reactions = boost::mpl::list<
+      sc::custom_reaction<CancelBackfill>,
       sc::transition<sc::event_base, Crashed>>;
     explicit Done(my_context);
+    sc::result react(CancelBackfill) {
+      return discard_event();
+    }
   };
 
   BackfillState(BackfillListener& backfill_listener,