diff options
author | Joao Eduardo Luis <joao.luis@inktank.com> | 2013-09-23 11:34:05 +0100 |
---|---|---|
committer | Joao Eduardo Luis <joao.luis@inktank.com> | 2013-09-27 16:49:34 +0100 |
commit | f5f71af981d6d35d4ee018300c2acbcb1780a0a3 (patch) | |
tree | 6b18ab16573113138018fdca1afb0ae390bf2eb8 | |
parent | 9edf967140a80f8802fff1443121e85faf2e6608 (diff) | |
download | ceph-f5f71af981d6d35d4ee018300c2acbcb1780a0a3.tar.gz |
mon: Monitor: only handle paxos msgs from a mon && if session has exec capswip-mon-auth
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
-rw-r--r-- | src/mon/Monitor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index a77086c0ec7..00b9a39235b 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2740,7 +2740,7 @@ bool Monitor::dispatch(MonSession *s, Message *m, const bool src_is_mon) case MSG_MON_PAXOS: { MMonPaxos *pm = static_cast<MMonPaxos*>(m); - if (!src_is_mon && + if (!src_is_mon || !s->is_capable("mon", MON_CAP_X)) { //can't send these! pm->put(); |