From: Sage Weil Date: Thu, 29 Jul 2010 22:49:27 +0000 (-0700) Subject: monclient: use default port if not specified via -m X-Git-Tag: v0.22~361 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b72c1bb6e9b77e1ab6c21bfd761f7fe3cc493647;p=ceph.git monclient: use default port if not specified via -m Reported-by: Thomas Mueller Signed-off-by: Sage Weil --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index e0e798ef704..0bf844b9065 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -64,6 +64,8 @@ int MonClient::build_initial_monmap() char n[2]; n[0] = 'a' + i; n[1] = 0; + if (addrs[i].get_port() == 0) + addrs[i].set_port(CEPH_MON_PORT); monmap.add(n, addrs[i]); } return 0;