mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
mon: remove the redundant judge on dispatch_op function
Signed-off-by: songbaisen <song.baisen@zte.com.cn>
This commit is contained in:
parent
21c759936d
commit
d71424dc16
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user