]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: PG::on_active_actmap() clear PG_STATE_SNAPTRIM_ERROR 51674/head
authorMatan Breizman <mbreizma@redhat.com>
Mon, 24 Apr 2023 12:56:18 +0000 (12:56 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 22 May 2023 15:49:36 +0000 (15:49 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit ad129f39e75ed9a128c5bc2bc52d575a01f1b0ea)

src/crimson/osd/pg.cc

index 56bc997783357b3a358248024ff0f6610e25efd2..fc2981990e52db8b4d4f2b440ba3e98c3645d6d7 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();
     });
 }