We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9ed68 commit 6fa0fa3Copy full SHA for 6fa0fa3
src/test/osd/test_scrub_sched.cc
@@ -10,6 +10,7 @@
10
11
#include "common/async/context_pool.h"
12
#include "common/ceph_argparse.h"
13
+#include "common/Finisher.h"
14
#include "global/global_context.h"
15
#include "global/global_init.h"
16
#include "include/utime_fmt.h"
@@ -109,9 +110,17 @@ class FakeOsd : public Scrub::ScrubSchedListener {
109
110
return std::nullopt;
111
}
112
113
+ AsyncReserver<spg_t, Finisher>& get_scrub_reserver() final
114
+ {
115
+ return m_scrub_reserver;
116
+ }
117
+
118
private:
119
int m_osd_num;
120
std::map<spg_t, schedule_result_t> m_next_response;
121
+ Finisher reserver_finisher{g_ceph_context};
122
+ AsyncReserver<spg_t, Finisher> m_scrub_reserver{
123
+ g_ceph_context, &reserver_finisher, 1};
124
};
125
126
0 commit comments