From 3f412e88fa93bfb150f9af8828158a2bb8d67322 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Sun, 18 Nov 2012 19:24:00 -0800 Subject: [PATCH] OSD: do _remove_pg in add_newly_split_pg is pool if gone Signed-off-by: Samuel Just --- src/osd/OSD.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2236fa1172b..a4b3179dc3e 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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(