From 4584bff33f165adae3eb398b40011b3d51fc2096 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 30 Jul 2017 11:16:08 +0800 Subject: [PATCH] osd: do not send pg_created unless luminous See-also: http://tracker.ceph.com/issues/20785 Signed-off-by: Kefu Chai --- src/osd/OSD.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 79f29db4b998e..3e721e9bc9843 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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)); + } } // -------------------------------------- -- 2.39.5