]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: convert PG::handle_rep_op to logging macros
authorSamuel Just <sjust@redhat.com>
Wed, 24 Jul 2024 04:37:29 +0000 (21:37 -0700)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 4 Sep 2024 09:48:34 +0000 (09:48 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/pg.cc

index f4551e04b30e2cc7b42ad41e142a610f35aa7d81..21b1e5db66a57237b270a8a16feb3beb08c198d3 100644 (file)
@@ -1439,7 +1439,8 @@ void PG::update_stats(const pg_stat_t &stat) {
 
 PG::interruptible_future<> PG::handle_rep_op(Ref<MOSDRepOp> req)
 {
-  logger().debug("{}: {}", __func__, *req);
+  LOG_PREFIX(PG::handle_rep_op);
+  DEBUGDPP("{}", *this, *req);
   if (can_discard_replica_op(*req)) {
     return seastar::now();
   }
@@ -1458,7 +1459,7 @@ PG::interruptible_future<> PG::handle_rep_op(Ref<MOSDRepOp> req)
                 !txn.empty(),
                 txn,
                 false);
-  logger().debug("PG::handle_rep_op: do_transaction...");
+  DEBUGDPP("{} do_transaction", *this, *req);
   return interruptor::make_interruptible(shard_services.get_store().do_transaction(
        coll_ref, std::move(txn))).then_interruptible(
       [req, lcod=peering_state.get_info().last_complete, this] {