From d71424dc166ffa5ec7ff1efa19fbf0b01883d2e1 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Mon, 23 May 2016 18:42:00 +0800 Subject: [PATCH] mon: remove the redundant judge on dispatch_op function Signed-off-by: songbaisen --- src/mon/Monitor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 5800e603037..a617a03f3fa 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; }