Fix online PG count change bugs

This commit is contained in:
Vitaliy Filippov
2021-02-25 23:59:33 +03:00
parent 69c87009e9
commit 2d73b19a6c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -802,11 +802,11 @@ void osd_t::report_pg_states()
if (pg_it->second.state == PG_OFFLINE)
{
// Remove offline PGs after reporting their state
this->pgs.erase(pg_it);
if (pg_it->second.scheme == POOL_SCHEME_JERASURE)
{
use_jerasure(pg_it->second.pg_size, pg_it->second.pg_size-pg_it->second.parity_chunks, false);
}
this->pgs.erase(pg_it);
}
}
}