]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: PG::on_active_actmap() clear PG_STATE_SNAPTRIM_ERROR 51198/head
authorMatan Breizman <mbreizma@redhat.com>
Mon, 24 Apr 2023 12:56:18 +0000 (12:56 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 25 Apr 2023 08:28:42 +0000 (08:28 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/pg.cc

index 7b421a7b605a047654a6d0f812e73e5ae0952eb9..4bf9b1ba525d742eeed1b0982b62ecc737a22bb1 100644 (file)
@@ -489,7 +489,10 @@ void PG::on_active_actmap()
         logger().debug("{}: trimmed snap={}", *this, trimmed);
       });
     }).finally([this] {
+      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();
     });
 }