]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not send pg_created unless luminous
authorKefu Chai <kchai@redhat.com>
Sun, 30 Jul 2017 03:16:08 +0000 (11:16 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 30 Jul 2017 03:17:06 +0000 (11:17 +0800)
See-also: http://tracker.ceph.com/issues/20785
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc

index 79f29db4b998e5e4d5ff2d7d1ac7f842813cc818..3e721e9bc9843cd6eb5ecd6328477ef214c6a94e 100644 (file)
@@ -1080,7 +1080,9 @@ void OSDService::send_pg_temp()
 void OSDService::send_pg_created(pg_t pgid)
 {
   dout(20) << __func__ << dendl;
-  monc->send_mon_message(new MOSDPGCreated(pgid));
+  if (osdmap->require_osd_release >= CEPH_RELEASE_LUMINOUS) {
+    monc->send_mon_message(new MOSDPGCreated(pgid));
+  }
 }
 
 // --------------------------------------