Skip to content

Commit

Permalink
ceph_mds: adopt ms public type
Browse files Browse the repository at this point in the history
Signed-off-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 committed Feb 2, 2017
1 parent 8edf8c2 commit 3ab97f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ceph_mds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ int main(int argc, const char **argv)
uint64_t nonce = 0;
get_random_bytes((char*)&nonce, sizeof(nonce));

Messenger *msgr = Messenger::create(g_ceph_context, g_conf->ms_type,
std::string public_msgr_type = g_conf->ms_public_type.empty() ? g_conf->ms_type : g_conf->ms_public_type;
Messenger *msgr = Messenger::create(g_ceph_context, public_msgr_type,
entity_name_t::MDS(-1), "mds",
nonce, Messenger::HAS_MANY_CONNECTIONS);
if (!msgr)
Expand Down

0 comments on commit 3ab97f6

Please sign in to comment.