1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

OSD: we need to check pg ?.0 for resurrection

Fixes: 
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
Samuel Just 2013-06-17 13:09:21 -07:00
parent d582ee2438
commit d46e6c3bff

View File

@ -1767,10 +1767,12 @@ OSD::res_result OSD::_try_resurrect_pg(
// find nearest ancestor
DeletingStateRef df;
pg_t cur(pgid);
while (cur.ps()) {
while (true) {
df = service.deleting_pgs.lookup(pgid);
if (df)
break;
if (!cur.ps())
break;
cur = cur.get_parent();
}
if (!df)