Skip to content

Conversation

@chenlipeng
Copy link

hello:
I found that the calculation of the majority is not strict. In php we should use intval(N/2)+1 instead of N/2+1, because if we have three masters the we must achieve the majority of the instances (at least 3), in fact we only need achieve the majority of the instances (at least 2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant