From e0a01ecc4f79ad972e78379040af2dd82366ea38 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 3 Mar 2017 12:56:21 -0600 Subject: msg/Messenger: drop useless 'supported' arg to Policy ctor We always use CEPH_FEATURES_DEFAULT_SUPPORTED (= CEPH_FEATURES_ALL) here. Signed-off-by: Sage Weil --- src/test/messenger/simple_client.cc | 2 +- src/test/messenger/simple_server.cc | 2 +- src/test/messenger/xio_client.cc | 2 +- src/test/messenger/xio_server.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/messenger') diff --git a/src/test/messenger/simple_client.cc b/src/test/messenger/simple_client.cc index 6fb01e9a9eb..7b37921b04f 100644 --- a/src/test/messenger/simple_client.cc +++ b/src/test/messenger/simple_client.cc @@ -110,7 +110,7 @@ int main(int argc, const char **argv) // enable timing prints messenger->set_magic(MSG_MAGIC_TRACE_CTR); - messenger->set_default_policy(Messenger::Policy::lossy_client(0, 0)); + messenger->set_default_policy(Messenger::Policy::lossy_client(0)); string dest_str = "tcp://"; dest_str += addr; diff --git a/src/test/messenger/simple_server.cc b/src/test/messenger/simple_server.cc index df94701e535..a10cdc5472c 100644 --- a/src/test/messenger/simple_server.cc +++ b/src/test/messenger/simple_server.cc @@ -82,7 +82,7 @@ int main(int argc, const char **argv) // enable timing prints messenger->set_magic(MSG_MAGIC_TRACE_CTR); messenger->set_default_policy( - Messenger::Policy::stateless_server(CEPH_FEATURES_ALL, 0)); + Messenger::Policy::stateless_server(0)); r = messenger->bind(bind_addr); if (r < 0) diff --git a/src/test/messenger/xio_client.cc b/src/test/messenger/xio_client.cc index da132060dc8..35218cbb258 100644 --- a/src/test/messenger/xio_client.cc +++ b/src/test/messenger/xio_client.cc @@ -131,7 +131,7 @@ int main(int argc, const char **argv) if (n_dsize) (void) static_cast(messenger)->pool_hint(n_dsize); - messenger->set_default_policy(Messenger::Policy::lossy_client(0, 0)); + messenger->set_default_policy(Messenger::Policy::lossy_client(0)); string dest_str = "tcp://"; dest_str += addr; diff --git a/src/test/messenger/xio_server.cc b/src/test/messenger/xio_server.cc index a5459a55e20..d50737b924b 100644 --- a/src/test/messenger/xio_server.cc +++ b/src/test/messenger/xio_server.cc @@ -97,7 +97,7 @@ int main(int argc, const char **argv) MSG_MAGIC_TRACE_CTR /* timing prints */); messenger->set_default_policy( - Messenger::Policy::stateless_server(CEPH_FEATURES_ALL, 0)); + Messenger::Policy::stateless_server(0)); r = messenger->bind(bind_addr); if (r < 0) -- cgit v1.2.3