From: songbaisen Date: Mon, 23 May 2016 10:42:00 +0000 (+0800) Subject: mon: remove the redundant judge on dispatch_op function X-Git-Tag: v11.0.0~386^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d71424dc166ffa5ec7ff1efa19fbf0b01883d2e1;p=ceph.git mon: remove the redundant judge on dispatch_op function Signed-off-by: songbaisen --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 5800e603037c..a617a03f3faf 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3682,8 +3682,7 @@ void Monitor::dispatch_op(MonOpRequestRef op) { op->set_type_paxos(); MMonPaxos *pm = static_cast(op->get_req()); - if (!op->is_src_mon() || - !op->get_session()->is_capable("mon", MON_CAP_X)) { + if (!op->get_session()->is_capable("mon", MON_CAP_X)) { //can't send these! break; }