diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-17 17:33:57 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-17 17:33:57 -0800 |
commit | 2bffed3bc94ff4aa8ade6f3a504d418b3a2a2fa3 (patch) | |
tree | e1c77dde413b1ad8b5b10c934b1816df6e6398fa /src/ceph_mds.cc | |
parent | 905e8d80debf3fc66e70ab1efcfdc11e060ee0a5 (diff) | |
parent | 1a7c8b49f099268ee468877f7f1f7ad747995547 (diff) | |
download | ceph-2bffed3bc94ff4aa8ade6f3a504d418b3a2a2fa3.tar.gz |
Merge remote branch 'gh/master' into wip-op-data-mux
Diffstat (limited to 'src/ceph_mds.cc')
-rw-r--r-- | src/ceph_mds.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc index 004745b4649..02195b21c12 100644 --- a/src/ceph_mds.cc +++ b/src/ceph_mds.cc @@ -64,7 +64,9 @@ static int do_cmds_special_action(const std::string &action, const std::string &dump_file, int rank) { SimpleMessenger *messenger = new SimpleMessenger(g_ceph_context); - messenger->bind(g_conf->public_addr, getpid()); + int r = messenger->bind(g_conf->public_addr, getpid()); + if (r < 0) + return r; MonClient mc(g_ceph_context); if (mc.build_initial_monmap() < 0) return -1; @@ -211,7 +213,12 @@ int main(int argc, const char **argv) global_print_banner(); SimpleMessenger *messenger = new SimpleMessenger(g_ceph_context); - messenger->bind(g_conf->public_addr, getpid()); + messenger->set_cluster_protocol(CEPH_MDS_PROTOCOL); + + int r = messenger->bind(g_conf->public_addr, getpid()); + if (r < 0) + exit(1); + cout << "starting " << g_conf->name << " at " << messenger->get_ms_addr() << std::endl; messenger->register_entity(entity_name_t::MDS(-1)); |