This makes a bit more sense. Don't use the seed monmap, but use the one
we ended up with when we formed our first quorum. This will do a better
job of picking up names of peers, and also ensure we get a map based on
the mon initial members (if specified).
Signed-off-by: Sage Weil <sage@inktank.com>
void MonmapMonitor::create_initial()
{
- bufferlist bl;
- mon->store->get_bl_ss(bl, "mkfs", "monmap");
- pending_map.decode(bl);
- dout(10) << "create_initial set fed epoch " << pending_map.epoch << dendl;
- assert(pending_map.epoch == 0); // fix mkfs()
+ dout(10) << "create_initial using current monmap" << dendl;
+ pending_map = *mon->monmap;
pending_map.epoch = 1;
}