This would allow you to do
mon host = foo, bar, baz
or
mon host = multiarecordhostname.foo.com
and have the generated monmap tag monitors as noname-, so that the ceph-mon
mkfs will identify itself as one of them and initialize itself
properly.
Signed-off-by: Sage Weil <sage@newdream.net>
n[1] = 0;
if (addrs[i].get_port() == 0)
addrs[i].set_port(CEPH_MON_PORT);
- monmap.add(n, addrs[i]);
+ string name = "noname-";
+ name += n;
+ monmap.add(name, addrs[i]);
}
return 0;
} else cerr << "couldn't parse_ip_port_vec on " << hosts << std::endl;