]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: remove trivial PGMap dependency for 'osd primary-temp' command 13616/head
authorSage Weil <sage@redhat.com>
Thu, 23 Feb 2017 21:50:21 +0000 (16:50 -0500)
committerSage Weil <sage@redhat.com>
Thu, 23 Feb 2017 21:50:27 +0000 (16:50 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 79a74a0f1f217bb74a873a66eeddab4b9e3ef1a7..9684eacffa271d643d426aa499eca37749ef94e1 100644 (file)
@@ -6813,8 +6813,7 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       err = -EINVAL;
       goto reply;
     }
-    PGMap& pg_map = mon->pgmon()->pg_map;
-    if (!pg_map.pg_stat.count(pgid)) {
+    if (!osdmap.pg_exists(pgid)) {
       ss << "pg " << pgid << " does not exist";
       err = -ENOENT;
       goto reply;