From 6eff3a60a587fa58c094672456342c273c77c264 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 8 Apr 2023 00:41:53 +0300 Subject: [PATCH] Do not lose left_on_dead PG state of non-clean PGs --- src/osd_peering_pg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd_peering_pg.cpp b/src/osd_peering_pg.cpp index ee5d8a18..249f268b 100644 --- a/src/osd_peering_pg.cpp +++ b/src/osd_peering_pg.cpp @@ -91,7 +91,7 @@ void pg_obj_state_check_t::walk() pg->state |= PG_DEGRADED; } pg->state |= PG_ACTIVE; - if (pg->state == PG_ACTIVE && pg->cur_peers.size() < pg->all_peers.size()) + if (pg->cur_peers.size() < pg->all_peers.size()) { pg->state |= PG_LEFT_ON_DEAD; }