]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: ignore queries on now deleted pools
authorSamuel Just <sam.just@inktank.com>
Wed, 5 Dec 2012 19:11:10 +0000 (11:11 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 5 Dec 2012 19:33:26 +0000 (11:33 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/osd/OSD.cc

index 58859a5741abc5b2d05acb8705b09e2a3f9a834d..6018587caccff549217959a2e29df3e210392791 100644 (file)
@@ -5133,6 +5133,9 @@ void OSD::handle_pg_query(OpRequestRef op)
       continue;
     }
 
+    if (!osdmap->have_pg_pool(pgid.pool()))
+      continue;
+
     // get active crush mapping
     vector<int> up, acting;
     osdmap->pg_to_up_acting_osds(pgid, up, acting);