]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: add activating complete low level log for pairing with start_peering_interval log
authorJianwei Zhang <jianwei1216@qq.com>
Wed, 18 May 2022 02:32:28 +0000 (10:32 +0800)
committerJianwei Zhang <jianwei1216@qq.com>
Wed, 18 May 2022 02:32:35 +0000 (10:32 +0800)
PeeringState::start_peering_interval() tell us the pg peering(new interval) begin time
AllReplicasActivated : tell us the pg peering end time

So that under the default log level of debug_osd(1/5),
the completion of each pg peering can be traced back through ceph-osd.x.log

Because under some exceptions, we need to know clearly
whether pg has completed peering at the time when the exception occurs,
and whether it can handle client IO.

Signed-off-by: Jianwei Zhang <jianwei1216@qq.com>
src/osd/PeeringState.cc

index 0158ed92da6ad9d1704cd4a9a223af8f91badc3a..22360bb48db8079c32aba05a9c10044efff9e336 100644 (file)
@@ -6227,6 +6227,8 @@ boost::statechart::result PeeringState::Active::react(const AllReplicasActivated
     pl->send_pg_created(pgid);
   }
 
+  psdout(1) << __func__ << " AllReplicasActivated Activating complete" << dendl;
+
   ps->info.history.last_epoch_started = ps->info.last_epoch_started;
   ps->info.history.last_interval_started = ps->info.last_interval_started;
   ps->dirty_info = true;