summaryrefslogtreecommitdiffstats
path: root/src/osd/scrubber_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/scrubber_common.h')
-rw-r--r--src/osd/scrubber_common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/osd/scrubber_common.h b/src/osd/scrubber_common.h
index 16810bba15c..ce269563f9a 100644
--- a/src/osd/scrubber_common.h
+++ b/src/osd/scrubber_common.h
@@ -18,12 +18,14 @@ struct PGPool;
namespace Scrub {
class ReplicaReservations;
+ struct ReplicaActive;
}
/// Facilitating scrub-related object access to private PG data
class ScrubberPasskey {
private:
friend class Scrub::ReplicaReservations;
+ friend struct Scrub::ReplicaActive;
friend class PrimaryLogScrub;
friend class PgScrubber;
friend class ScrubBackend;
@@ -169,8 +171,7 @@ struct requested_scrub_t {
* the value of auto_repair is determined in sched_scrub() (once per scrub.
* previous value is not remembered). Set if
* - allowed by configuration and backend, and
- * - must_scrub is not set (i.e. - this is a periodic scrub),
- * - time_for_deep was just set
+ * - for periodic scrubs: time_for_deep was just set
*/
bool auto_repair{false};
@@ -310,6 +311,9 @@ struct ScrubPgIF {
/// the OSD scrub queue
virtual void on_new_interval() = 0;
+ /// we are peered as a replica
+ virtual void on_replica_activate() = 0;
+
virtual void scrub_clear_state() = 0;
virtual void handle_query_state(ceph::Formatter* f) = 0;