From: Ronen Friedman Date: Sun, 28 Jan 2024 16:48:18 +0000 (-0600) Subject: test: fix test_scrub_sched following recent scrub changes X-Git-Tag: v19.1.0~388^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6fa0fa3153522622fdc2128b5d6f4e76ca160ef9;p=ceph.git test: fix test_scrub_sched following recent scrub changes Signed-off-by: Ronen Friedman --- diff --git a/src/test/osd/test_scrub_sched.cc b/src/test/osd/test_scrub_sched.cc index afeb32b21d9d2..b6c069c4b5f4e 100644 --- a/src/test/osd/test_scrub_sched.cc +++ b/src/test/osd/test_scrub_sched.cc @@ -10,6 +10,7 @@ #include "common/async/context_pool.h" #include "common/ceph_argparse.h" +#include "common/Finisher.h" #include "global/global_context.h" #include "global/global_init.h" #include "include/utime_fmt.h" @@ -109,9 +110,17 @@ class FakeOsd : public Scrub::ScrubSchedListener { return std::nullopt; } + AsyncReserver& get_scrub_reserver() final + { + return m_scrub_reserver; + } + private: int m_osd_num; std::map m_next_response; + Finisher reserver_finisher{g_ceph_context}; + AsyncReserver m_scrub_reserver{ + g_ceph_context, &reserver_finisher, 1}; };