Fix possible "assertion failed: pg.inflight >= 0" error during PG stop

This commit is contained in:
Vitaliy Filippov
2021-03-08 17:04:10 +03:00
parent ab21a1908b
commit 21e7686037
3 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ bool osd_t::stop_pg(pg_t & pg)
delete pg.peering_state;
pg.peering_state = NULL;
}
if (pg.state & PG_STOPPING)
if (pg.state & (PG_STOPPING | PG_OFFLINE))
{
return false;
}