osd->pg_stat_queue_dequeue(pg);
}
+void OSDService::start_shutdown()
+{
+ {
+ Mutex::Locker l(agent_timer_lock);
+ agent_timer.cancel_all_events();
+ agent_timer.shutdown();
+ }
+}
+
void OSDService::shutdown()
{
reserver_finisher.stop();
Mutex::Locker l(backfill_request_lock);
backfill_request_timer.shutdown();
}
- {
- Mutex::Locker l(agent_timer_lock);
- agent_timer.shutdown();
- }
osdmap = OSDMapRef();
next_osdmap = OSDMapRef();
}
cct->_conf->set_val("debug_ms", "100");
cct->_conf->apply_changes(NULL);
+ service.start_shutdown();
+
dispatch_sessions_waiting_on_map();
// Shutdown PGs