We can't modify g_conf->public_addr after that.
Signed-off-by: Sage Weil <sage@newdream.net>
// -- mkfs --
if (mkfs) {
+ // resolve public_network -> public_addr
+ pick_addresses(g_ceph_context);
+
common_init_finish(g_ceph_context);
bufferlist monmapbl, osdmapbl;
exit(1);
}
- // resolve public_network -> public_addr
- pick_addresses(g_ceph_context);
-
// am i part of the initial quorum?
if (monmap.contains(g_conf->name.get_id())) {
// hmm, make sure the ip listed exists on the current host?