Skip to content

Commit

Permalink
mds: use new pick_addresses
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Jul 3, 2018
1 parent 6f0e60c commit 22086a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ceph_mds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ int main(int argc, const char **argv)

Preforker forker;

pick_addresses(g_ceph_context, CEPH_PICK_ADDRESS_PUBLIC);
entity_addrvec_t addrs;
pick_addresses(g_ceph_context, CEPH_PICK_ADDRESS_PUBLIC, &addrs);

// Normal startup
if (g_conf->name.has_default_id()) {
Expand Down Expand Up @@ -188,7 +189,7 @@ int main(int argc, const char **argv)
msgr->set_policy(entity_name_t::TYPE_CLIENT,
Messenger::Policy::stateful_server(0));

int r = msgr->bind(g_conf->public_addr);
int r = msgr->bindv(addrs);
if (r < 0)
forker.exit(1);

Expand Down

0 comments on commit 22086a7

Please sign in to comment.