crimson/osd/pg: PG::on_active_actmap() clear PG_STATE_SNAPTRIM_ERROR

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
This commit is contained in:
Matan Breizman 2023-04-24 12:56:18 +00:00
parent 03ff8f206a
commit ad129f39e7

View 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();
});
}