Do not lose left_on_dead PG state of non-clean PGs

This commit is contained in:
Vitaliy Filippov
2023-04-08 02:44:02 +03:00
parent 888a6975ab
commit 6eff3a60a5
+1 -1
View File
@@ -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;
}