]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: improve debugs in PGAdvanceMap
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 14 Sep 2022 11:27:42 +0000 (11:27 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 14 Sep 2022 11:37:38 +0000 (11:37 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd_operations/pg_advance_map.cc

index c7fcacb315de205c407340709703fa3825bb91d9..7cd4bf79a756bfe77e1dc5752f52b5206e9a2079 100644 (file)
@@ -70,10 +70,13 @@ seastar::future<> PGAdvanceMap::start()
       [this](epoch_t next_epoch) {
         return shard_manager.get_map(next_epoch).then(
           [this] (cached_map_t&& next_map) {
+            logger().debug("{}: advancing map to {}",
+                           *this, next_map->get_epoch());
             pg->handle_advance_map(next_map, rctx);
           });
       }).then([this] {
         pg->handle_activate_map(rctx);
+        logger().debug("{}: map activated", *this);
         if (do_init) {
           shard_manager.pg_created(pg->get_pgid(), pg);
           shard_manager.get_shard_services().inc_pg_num();
@@ -88,6 +91,7 @@ seastar::future<> PGAdvanceMap::start()
             pg->get_collection_ref(),
             std::move(rctx)));
       }).then_unpack([this] {
+        logger().debug("{}: sending pg temp", *this);
         return shard_manager.get_shard_services().send_pg_temp();
       });
   }).then([this, ref=std::move(ref)] {