Merge pull request #46438 from pdvian/wip-scrub-starts

osd/scrub: Reintroduce scrub starts message

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
This commit is contained in:
Yuri Weinstein 2022-06-14 08:27:05 -07:00 committed by GitHub
commit 789e61cd5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,7 @@ struct fmt::formatter<pg_t> {
template <typename FormatContext>
auto format(const pg_t& pg, FormatContext& ctx)
{
return fmt::format_to(ctx.out(), "{}.{}", pg.pool(), pg.m_seed);
return fmt::format_to(ctx.out(), "{}.{:x}", pg.pool(), pg.m_seed);
}
};

View File

@ -2145,6 +2145,10 @@ PgScrubber::PgScrubber(PG* pg)
void PgScrubber::set_scrub_begin_time()
{
scrub_begin_stamp = ceph_clock_now();
m_osds->clog->debug() << fmt::format(
"{} {} starts",
m_pg->info.pgid.pgid,
m_mode_desc);
}
void PgScrubber::set_scrub_duration()