From: Radoslaw Zarzynski Date: Tue, 10 Jan 2023 14:38:31 +0000 (+0000) Subject: test/crimson: add event-type-checking next_round2() to BackfillFixture X-Git-Tag: v20.0.0~1148^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae7469ae6b0da0836173bcae1b95be87a293ccf6;p=ceph.git test/crimson: add event-type-checking next_round2() to BackfillFixture Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/test/crimson/test_backfill.cc b/src/test/crimson/test_backfill.cc index 1ce9b42ad381..bf958cd5ae72 100644 --- a/src/test/crimson/test_backfill.cc +++ b/src/test/crimson/test_backfill.cc @@ -154,6 +154,14 @@ public: } } + template + void next_round2() { + ceph_assert(events_to_dispatch.size()); + ceph_assert(typeid(*events_to_dispatch.front()) == typeid(EventT)); + backfill_state.process_event(std::move(events_to_dispatch.front())); + events_to_dispatch.pop_front(); + } + void next_till_done() { while (!events_to_dispatch.empty()) { next_round();