Skip to content

Commit

Permalink
Merge pull request #10240 from songbaisen/b2
Browse files Browse the repository at this point in the history
mon: remove the redudant jugement in paxosservice is_writeable function

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
yuriw committed Mar 7, 2017
2 parents 3f5269d + 0048f44 commit 0541218
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mon/PaxosService.h
Expand Up @@ -515,10 +515,7 @@ class PaxosService {
* @returns true if writeable; false otherwise
*/
bool is_writeable() {
return
!is_proposing() &&
is_write_ready() &&
(paxos->is_active() || paxos->is_updating() || paxos->is_writing());
return is_write_ready();
}

/**
Expand Down

0 comments on commit 0541218

Please sign in to comment.