From 4d6b678736e9afee3a0a2556ec5af874e32078bf Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Thu, 17 Sep 2020 13:15:44 +0800 Subject: messenger: remove unused variable Signed-off-by: Changcheng Liu --- src/ceph_mon.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ceph_mon.cc') diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc index ff2ad22efd3..71c53d6dbca 100644 --- a/src/ceph_mon.cc +++ b/src/ceph_mon.cc @@ -790,9 +790,7 @@ int main(int argc, const char **argv) int rank = monmap.get_rank(g_conf()->name.get_id()); std::string public_msgr_type = g_conf()->ms_public_type.empty() ? g_conf().get_val("ms_type") : g_conf()->ms_public_type; Messenger *msgr = Messenger::create(g_ceph_context, public_msgr_type, - entity_name_t::MON(rank), "mon", - 0, // zero nonce - Messenger::HAS_MANY_CONNECTIONS); + entity_name_t::MON(rank), "mon", 0); if (!msgr) exit(1); msgr->set_cluster_protocol(CEPH_MON_PROTOCOL); @@ -843,8 +841,7 @@ int main(int argc, const char **argv) Messenger *mgr_msgr = Messenger::create(g_ceph_context, public_msgr_type, entity_name_t::MON(rank), "mon-mgrc", - Messenger::get_pid_nonce(), - 0); + Messenger::get_pid_nonce()); if (!mgr_msgr) { derr << "unable to create mgr_msgr" << dendl; prefork.exit(1); -- cgit v1.2.3