]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: 'starts' messages should name PGs, not shards 64211/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 26 Jun 2025 13:27:57 +0000 (08:27 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 26 Jun 2025 13:27:57 +0000 (08:27 -0500)
By mistake, the 'scrub starts' message included the shard ID
of the primary OSD, instead of just the PG ID.

Fixes: https://tracker.ceph.com/issues/71780
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/scrub_machine.cc

index d6cf2c03b9679a566753dff802a02f5c09664de6..2d21c8d25c84d7cdd879bf97bd14430503d4dcd5 100644 (file)
@@ -319,7 +319,7 @@ ActiveScrubbing::ActiveScrubbing(my_context ctx)
 
   session.m_osd_counters->inc(session.m_counters_idx->active_started_cnt);
   scrbr->get_clog()->debug()
-      << fmt::format("{} {} starts", pg_id, scrbr->get_op_mode_text());
+      << fmt::format("{} {} starts", pg_id.pgid, scrbr->get_op_mode_text());
 
   scrbr->on_init();
 }