The handler of interruptions may be scheduler long after the
interruptions happen, when the world may has changed completely.
So the assertions about temporary states don't seem appropriate
in the handlers of those interruptions.
Fixes: https://tracker.ceph.com/issues/73820
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
});
}, [this](std::exception_ptr eptr) {
logger().debug("{}: snap trimming interrupted", *this);
- ceph_assert(!peering_state.state_test(PG_STATE_SNAPTRIM));
}, pg_ref, pg_ref->get_osdmap_epoch()).finally([pg_ref, this] {
publish_stats_to_osd();
});