]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix prime_pg_temp vs creating condition
authorSage Weil <sage@redhat.com>
Tue, 2 May 2017 15:48:02 +0000 (10:48 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 May 2017 15:49:00 +0000 (10:49 -0500)
We want to *skip* creating PGs.

Fixes: http://tracker.ceph.com/issues/19826
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 3a95d32a54cf2d505067bfc2cffe8c1ff6ebb696..08f616dc91f5bbc6b5bca82838e7a2b812c4eb89 100644 (file)
@@ -1067,12 +1067,12 @@ void OSDMonitor::prime_pg_temp(
 {
   if (mon->monmap->get_required_features().contains_all(
         ceph::features::mon::FEATURE_LUMINOUS)) {
-    if (!creating_pgs.pgs.count(pgid)) {
+    if (creating_pgs.pgs.count(pgid)) {
       return;
     }
   } else {
     const auto& pg_map = mon->pgmon()->pg_map;
-    if (!pg_map.creating_pgs.count(pgid)) {
+    if (pg_map.creating_pgs.count(pgid)) {
       return;
     }
   }