projected_last_update = eversion_t();
cancel_recovery();
- assert(m_scrubber);
+ ceph_assert(m_scrubber);
// log some scrub data before we react to the interval
- dout(30) << __func__ << (is_scrub_queued_or_active() ? " scrubbing " : " ")
+ dout(20) << __func__ << (is_scrub_queued_or_active() ? " scrubbing " : " ")
<< "flags: " << m_planned_scrub << dendl;
m_scrubber->on_primary_change(__func__, m_planned_scrub);
mop->tids[offset] = tid;
if (!ctx->obc->is_blocked()) {
+ dout(15) << fmt::format("{}: blocking object on rc: tid:{}", __func__, tid) << dendl;
ctx->obc->start_block();
}
need_inc_ref = true;
mirror_snapset, src_obj_fadvise_flags,
dest_obj_fadvise_flags));
copy_ops[dest] = cop;
+ dout(20) << fmt::format("{}: blocking {}", __func__, dest) << dendl;
obc->start_block();
if (!obc->obs.oi.has_manifest()) {
}
}
- if (blocking)
+ if (blocking) {
+ dout(20) << fmt::format("{}: blocking {}", __func__, soid) << dendl;
obc->start_block();
+ }
map<hobject_t,FlushOpRef>::iterator p = flush_ops.find(soid);
if (p != flush_ops.end()) {
└─────────────────────────────────┘
-SqrubQueue interfaces (main functions):
+ScrubQueue interfaces (main functions):
<1> - OSD/PG resources management:
void register_with_osd(ScrubJobRef sjob, const sched_params_t& suggested);
/**
- * modify a scrub-job's schduled time and deadline
+ * modify a scrub-job's scheduled time and deadline
*
* There are 3 argument combinations to consider:
* - 'must' is asserted, and the suggested time is 'scrub_must_stamp':
mutable ceph::mutex resource_lock =
ceph::make_mutex("ScrubQueue::resource_lock");
- // the counters used to manage scrub activity parallelism:
+ /// the counters used to manage scrub activity parallelism:
int scrubs_local{0};
int scrubs_remote{0};
return m_pg->get_osdmap();
}
-LoggerSinkSet& PgScrubber::get_logger() const { return*m_osds->clog.get(); }
+LoggerSinkSet& PgScrubber::get_logger() const { return *m_osds->clog.get(); }
ostream &operator<<(ostream &out, const PgScrubber &scrubber) {
return out << scrubber.m_flags;
LocalReservation::LocalReservation(OSDService* osds) : m_osds{osds}
{
if (m_osds->get_scrub_services().inc_scrubs_local()) {
- // the failure is signalled by not having m_holding_local_reservation set
+ // a failure is signalled by not having m_holding_local_reservation set
m_holding_local_reservation = true;
}
}
(shard_ret.oi.version == auth_version &&
dcount(shard_ret.oi) > dcount(ret_auth.auth_oi))) {
- dout(30) << fmt::format("{}: using {} moved auth oi {:p} <-> {:p}",
+ dout(20) << fmt::format("{}: using {} moved auth oi {:p} <-> {:p}",
__func__,
l,
(void*)&ret_auth.auth_oi,
const pg_shard_t& srd,
shard_info_map_t& shard_map)
{
- // 'maps' (called with this_chunk->maps originaly): this_chunk->maps
+ // 'maps' (originally called with this_chunk->maps): this_chunk->maps
// 'auth_oi' (called with 'auth_oi', which wasn't initialized at call site)
// - create and return
// 'shard_map' - the one created in select_auth_object()