From: Joao Eduardo Luis Date: Tue, 13 Nov 2012 16:57:34 +0000 (+0000) Subject: mon: Monitor: drop election messages if entity doesn't have enough caps X-Git-Tag: v0.55~76^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=900a0fa2d0dc65a37aa3696a49c786742ea8f0a0;p=ceph.git mon: Monitor: drop election messages if entity doesn't have enough caps Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index d92c19156d4a..a88dd527818e 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2072,6 +2072,8 @@ bool Monitor::_ms_dispatch(Message *m) !s->caps.check_privileges(PAXOS_MONMAP, MON_CAP_X)) { dout(0) << "MMonElection received from entity without enough caps!" << s->caps << dendl; + m->put(); + break; } if (!is_probing() && !is_slurping()) { elector.dispatch(m);