Skip to content

Commit ae7469a

Browse files
rzarzynskixxhdx1985126
authored andcommitted
test/crimson: add event-type-checking next_round2() to BackfillFixture
Signed-off-by: Radoslaw Zarzynski <[email protected]>
1 parent 9ba4cd8 commit ae7469a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/crimson/test_backfill.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ class BackfillFixture : public crimson::osd::BackfillState::BackfillListener {
154154
}
155155
}
156156

157+
template <class EventT>
158+
void next_round2() {
159+
ceph_assert(events_to_dispatch.size());
160+
ceph_assert(typeid(*events_to_dispatch.front()) == typeid(EventT));
161+
backfill_state.process_event(std::move(events_to_dispatch.front()));
162+
events_to_dispatch.pop_front();
163+
}
164+
157165
void next_till_done() {
158166
while (!events_to_dispatch.empty()) {
159167
next_round();

0 commit comments

Comments
 (0)