if (!osdmon()->is_writeable()) {
osdmon()->wait_for_writeable_ctx(new CMonGoRecovery(this));
}
+ set_recovery_stretch_mode();
+ osdmon()->trigger_recovery_stretch_mode();
+}
+
+void Monitor::set_recovery_stretch_mode()
+{
+ degraded_stretch_mode = true;
recovering_stretch_mode = true;
- osdmon()->trigger_recovery_stretch_mode();
}
void Monitor::maybe_go_degraded_stretch_mode()
const set<int>& dead_buckets);
void set_degraded_stretch_mode();
void go_recovery_stretch_mode();
+ void set_recovery_stretch_mode();
void trigger_healthy_stretch_mode();
void set_healthy_stretch_mode();
void enable_stretch_mode();