f->close_section();
}
-PgScrubber::~PgScrubber()
-{
- dout(10) << __func__ << dendl;
-}
+PgScrubber::~PgScrubber() = default;
PgScrubber::PgScrubber(PG* pg)
: m_pg{pg}
// send un-reserve messages to all reserved replicas. We do not wait for answer (there
// wouldn't be one). Other incoming messages will be discarded on the way, by our
// owner.
- dout(10) << __func__ << " " << m_reserved_peers << dendl;
-
epoch_t epoch = m_pg->get_osdmap_epoch();
for (auto& p : m_reserved_peers) {
if (m_holding_local_reservation) {
m_holding_local_reservation = false;
m_osds->dec_scrubs_local();
- dout(20) << __func__ << ": local OSD scrub resources freed" << dendl;
}
}
if (m_reserved_by_remote_primary) {
m_reserved_by_remote_primary = false;
m_osds->dec_scrubs_remote();
- dout(20) << __func__ << ": scrub resources held for Primary were freed" << dendl;
}
}
dout(15) << "ScrubMachine created " << m_pg_id << dendl;
}
-ScrubMachine::~ScrubMachine()
-{
- dout(20) << "~ScrubMachine " << m_pg_id << dendl;
-}
+ScrubMachine::~ScrubMachine() = default;
// -------- for replicas -----------------------------------------------------