summaryrefslogtreecommitdiffstats
path: root/src/ceph_mon.cc
diff options
context:
space:
mode:
authorChangcheng Liu <changcheng.liu@aliyun.com>2020-09-17 07:15:44 +0200
committerChangcheng Liu <changcheng.liu@aliyun.com>2020-09-21 03:22:07 +0200
commit4d6b678736e9afee3a0a2556ec5af874e32078bf (patch)
tree7c6724a8c29ed6c5a54666a73ff62c24868c4c01 /src/ceph_mon.cc
parentMerge pull request #37072 from idryomov/wip-kcephfs-blacklisted-string (diff)
downloadceph-4d6b678736e9afee3a0a2556ec5af874e32078bf.tar.xz
ceph-4d6b678736e9afee3a0a2556ec5af874e32078bf.zip
messenger: remove unused variable
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r--src/ceph_mon.cc7
1 files changed, 2 insertions, 5 deletions
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<std::string>("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);