From: Joao Eduardo Luis Date: Wed, 23 May 2012 05:48:50 +0000 (-0700) Subject: mon: Do some aesthetic reformatting on the Elector class. X-Git-Tag: v0.48argonaut~151^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=15a30d920a62a9b2b9afd39ef8b0feeeee6febcd;p=ceph.git mon: Do some aesthetic reformatting on the Elector class. Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Elector.cc b/src/mon/Elector.cc index 6b91f5a8d763..cc25cba82a2e 100644 --- a/src/mon/Elector.cc +++ b/src/mon/Elector.cc @@ -78,8 +78,8 @@ void Elector::start() // bcast to everyone else for (unsigned i=0; imonmap->size(); ++i) { if ((int)i == mon->rank) continue; - mon->messenger->send_message(new MMonElection(MMonElection::OP_PROPOSE, epoch, mon->monmap), - mon->monmap->get_inst(i)); + Message *m = new MMonElection(MMonElection::OP_PROPOSE, epoch, mon->monmap); + mon->messenger->send_message(m, mon->monmap->get_inst(i)); } reset_timer(); @@ -294,7 +294,8 @@ void Elector::dispatch(Message *m) return; } if (m->get_source().num() >= mon->monmap->size()) { - dout(5) << " ignoring bogus election message with bad mon rank " << m->get_source() << dendl; + dout(5) << " ignoring bogus election message with bad mon rank " + << m->get_source() << dendl; m->put(); return; } @@ -303,7 +304,8 @@ void Elector::dispatch(Message *m) // assume an old message encoding would have matched if (em->fsid != mon->monmap->fsid) { - dout(0) << " ignoring election msg fsid " << em->fsid << " != " << mon->monmap->fsid << dendl; + dout(0) << " ignoring election msg fsid " + << em->fsid << " != " << mon->monmap->fsid << dendl; m->put(); return; }