OSD: do _remove_pg in add_newly_split_pg is pool if gone

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2012-11-18 19:24:00 -08:00
parent 19e6861daf
commit 3f412e88fa

View File

@ -1378,6 +1378,8 @@ void OSD::add_newly_split_pg(PG *pg, PG::RecoveryCtx *rctx)
peering_wait_for_split.erase(to_wake);
}
wake_pg_waiters(pg->info.pgid);
if (!service.get_osdmap()->have_pg_pool(pg->info.pgid.pool()))
_remove_pg(pg);
}
PG *OSD::_create_lock_pg(