Skip to content

Commit

Permalink
osd: use defined osd_required features for messenger policy
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Jun <[email protected]>
  • Loading branch information
Yan-waller committed Feb 4, 2018
1 parent c41ef5a commit 3887c47
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ceph_osd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,9 @@ int main(int argc, const char **argv)
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,
Expand Down

0 comments on commit 3887c47

Please sign in to comment.