mon: remove the redundant judge on dispatch_op function

Signed-off-by: songbaisen <song.baisen@zte.com.cn>
This commit is contained in:
songbaisen 2016-05-23 18:42:00 +08:00
parent 21c759936d
commit d71424dc16

View File

@ -3682,8 +3682,7 @@ void Monitor::dispatch_op(MonOpRequestRef op)
{
op->set_type_paxos();
MMonPaxos *pm = static_cast<MMonPaxos*>(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;
}