From 3887c47003499ebbb04af07a52103477904775b5 Mon Sep 17 00:00:00 2001 From: Yan Jun Date: Sun, 4 Feb 2018 23:10:07 +0800 Subject: [PATCH] osd: use defined osd_required features for messenger policy Signed-off-by: Yan Jun --- src/ceph_osd.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index 4d7daf62d13..fb7ee11c4cb 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -529,13 +529,9 @@ flushjournal_out: client_byte_throttler.get(), nullptr); ms_public->set_policy(entity_name_t::TYPE_MON, - Messenger::Policy::lossy_client(CEPH_FEATURE_UID | - CEPH_FEATURE_PGID64 | - CEPH_FEATURE_OSDENC)); + Messenger::Policy::lossy_client(osd_required)); ms_public->set_policy(entity_name_t::TYPE_MGR, - Messenger::Policy::lossy_client(CEPH_FEATURE_UID | - CEPH_FEATURE_PGID64 | - CEPH_FEATURE_OSDENC)); + Messenger::Policy::lossy_client(osd_required)); //try to poison pill any OSD connections on the wrong address ms_public->set_policy(entity_name_t::TYPE_OSD,