Message ID | 56B3253B.3030300@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/quorum.c b/block/quorum.c index e5a7e4f..f4f1d28 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -458,6 +458,11 @@ static QuorumVoteVersion *quorum_get_vote_winner(QuorumVotes *votes) if (candidate->vote_count > max) { max = candidate->vote_count; winner = candidate; + continue; + } + if (candidate->vote_count == max && + candidate->value.l > winner->value.l) { + winner = candidate; } }