diff options
Diffstat (limited to 'src/mon/Monitor.h')
-rw-r--r-- | src/mon/Monitor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 90fbc8f09c0..557edbf2eb4 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -293,6 +293,7 @@ public: * updates across the entire cluster. */ void try_engage_stretch_mode(); + void try_disable_stretch_mode(); void maybe_go_degraded_stretch_mode(); void trigger_degraded_stretch_mode(const std::set<std::string>& dead_mons, const std::set<int>& dead_buckets); @@ -341,8 +342,10 @@ private: struct ScrubState { std::pair<std::string,std::string> last_key; ///< last scrubbed key bool finished; + const utime_t start; - ScrubState() : finished(false) { } + ScrubState() : finished(false), + start(ceph_clock_now()) { } virtual ~ScrubState() { } }; std::shared_ptr<ScrubState> scrub_state; ///< keeps track of current scrub |