diff options
author | Yan Jun <yan.jun8@zte.com.cn> | 2018-02-04 16:10:07 +0100 |
---|---|---|
committer | Yan Jun <yan.jun8@zte.com.cn> | 2018-02-04 16:16:58 +0100 |
commit | 3887c47003499ebbb04af07a52103477904775b5 (patch) | |
tree | 83d38ec4e757f4bb69bc77f01bf54724c786eca4 /src/ceph_osd.cc | |
parent | Merge pull request #19758 from nrdmn/fix-dashboard-wip (diff) | |
download | ceph-3887c47003499ebbb04af07a52103477904775b5.tar.xz ceph-3887c47003499ebbb04af07a52103477904775b5.zip |
osd: use defined osd_required features for messenger policy
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
Diffstat (limited to 'src/ceph_osd.cc')
-rw-r--r-- | src/ceph_osd.cc | 8 |
1 files 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, |