From 64067b09eff7fdbb68f1c313d09230c9259b490f Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 24 Apr 2023 12:56:18 +0000 Subject: [PATCH] crimson/osd/pg: PG::on_active_actmap() clear PG_STATE_SNAPTRIM_ERROR Signed-off-by: Matan Breizman (cherry picked from commit ad129f39e75ed9a128c5bc2bc52d575a01f1b0ea) --- src/crimson/osd/pg.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 56bc997783357..fc2981990e52d 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -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(); }); } -- 2.39.5