]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: PG::on_active_actmap() indention 54416/head
authorMatan Breizman <mbreizma@redhat.com>
Sun, 12 Nov 2023 13:53:59 +0000 (13:53 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 13 Nov 2023 16:06:00 +0000 (16:06 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/pg.cc

index 46daa402f81fd425af10943b3930e85d10bbc3bc..78ae559e8cd5663a22b7f9512e2f60258677d9c3 100644 (file)
@@ -506,13 +506,14 @@ void PG::on_active_actmap()
       }).then([this, trimmed=to_trim] {
         logger().debug("{}: trimmed snap={}", *this, trimmed);
       });
-    }).finally([this, pg_ref] {
-      logger().debug("{}: PG::on_active_actmap() finished trimming",
-                     *this);
-      peering_state.state_clear(PG_STATE_SNAPTRIM);
-      peering_state.state_clear(PG_STATE_SNAPTRIM_ERROR);
-      publish_stats_to_osd();
-    });
+    }
+  ).finally([this, pg_ref] {
+    logger().debug("{}: PG::on_active_actmap() finished trimming",
+                   *this);
+    peering_state.state_clear(PG_STATE_SNAPTRIM);
+    peering_state.state_clear(PG_STATE_SNAPTRIM_ERROR);
+    publish_stats_to_osd();
+  });
 }
 
 void PG::on_active_advmap(const OSDMapRef &osdmap)