Re: [Qemu-devel] [PATCH 1/1] quorum: change vote rules for 64 bits hash

2016-02-15 Thread Changlong Xie
On 02/16/2016 01:10 AM, Eric Blake wrote: On 02/15/2016 02:52 AM, Changlong Xie wrote: Before: 1) vote_count > max: winner = candidate, update max 2) vote_count <= max: do nothing Current: 1) vote_count > max: winner = candidate, update max 2) vote_count = max: compare the value of winner with c

Re: [Qemu-devel] [PATCH 1/1] quorum: change vote rules for 64 bits hash

2016-02-15 Thread Eric Blake
On 02/15/2016 02:52 AM, Changlong Xie wrote: > Before: > 1) vote_count > max: winner = candidate, update max > 2) vote_count <= max: do nothing > Current: > 1) vote_count > max: winner = candidate, update max > 2) vote_count = max: compare the value of winner with > candidate, if candidate->value.l

[Qemu-devel] [PATCH 1/1] quorum: change vote rules for 64 bits hash

2016-02-15 Thread Changlong Xie
Before: 1) vote_count > max: winner = candidate, update max 2) vote_count <= max: do nothing Current: 1) vote_count > max: winner = candidate, update max 2) vote_count = max: compare the value of winner with candidate, if candidate->value.l == 0, winner = candidate, else do nothing 3) vote_count <