Sentinel: fix computation of total number of votes.
Sentinel: fix computation of total number of votes.

The code to check the number of voters was never updated to follow the new
Sentinel specification, so the number of voters was computed using only
the set of Sentinels that provided a vote.

This means that there is a changing majority on partitions, even if
usually the issue is not triggered because of the configured quorum
check (what was broken was the other implicit check that requires anyway
half of the known sentinels to agree in order to start a failover).

rouzier/redis,OmarQunsul/graph-redis,StevenTsai/redis,Markgorden/redis,yuhc/redis-benchmark-enhanced,linfangrong/redis,Aaron1992/redis,thomasdarimont/redis,taoguan/redis,july2993/redis,SummonY/redis,simplestbest/redis,kensou97/redis,weizijun/redis,atreeyang/redis,taoguan/redis,hgl888/redis,Soledad89/redis,dayuoba/redis,elkingtonmcb/redis,ituncle/redis,netroby/redis,ofirluzon/redis,PKRoma/redis,j0hnma/szredis,soveran/redis,GrimDerp/redis,YuraLukashik/redis,abhiklodh/redis,july2993/redis,ton31337/redis,rogerlz/redis,wenxueliu/redis_comment,hedisdb/hedis,wangyikai/redis,nnog/redis,mumingv/redis,spinlock/redis,seandsky/redis,dreamquster/redis,cnbin/redis,kensou97/redis,mgk/redis,cloudrain21/redis,flashbuckets/redis,charsyam/redis,soloestoy/redis,hawkchch/redis,pkdevbox/redis,itamarhaber/redis,CodeJuan/redis,healerkx/redis,StevenTsai/redis,j0hnma/szredis,jackyan/redis,itugs/redis,wbailey5/redis,netroby/redis,dayuoba/redis,Aliceljm1/redis,josiahcarlson/redis,ErikDubbelboer/redis,seppo0010/redis,SyntaxStacks/redis,YongMan/redis,pcarrier/redis,AALEKH/redis,spinlock/redis,dreamquster/redis,allengaller/redis,universsky/redis,ton31337/redis,ytjiang/redis,elkingtonmcb/redis,AplayER/redis,mumingv/redis,Soledad89/redis,zhiliaoniu/redis,jasonkying/redis,gaoxianglong/redis,citusdata/redis,ytjiang/redis,YuanZhewei/redis,supasate/redis,charsyam/redis,nuxeh/redis,ouyangkongtong/redis,josiahcarlson/redis,july2993/redis,h0x91b/redis,brg-liuwei/redis,valdsJohn/redis,zhcy/redis,hawkchch/redis,arijitvt/redis,pcarrier/redis,xlzhan/redis,ton31337/redis,davidradunz/redis,mattsta/redis,LongXQ/redis,OmarQunsul/graph-redis,cnbin/redis,shreesundara/redis,a-pavlov/redis,riyan8250/redis,ton31337/redis,mverrilli/redis,itugs/redis,colstrom/redis,gaoxianglong/redis,mingyaaaa/redis,charsyam/redis,itugs/redis,programmecat/redis,Wangyao14cyy/redis,shining-yang/redis,mcanthony/redis,wangyikai/redis,RepmujNetsik/redis,Aliceljm1/redis,hornen/redis,Soledad89/redis,atreeyang/redis,abhiklodh/redis,izhoujie/redis,davidradunz/redis,gilala/bjredis,ncopa/redis,xujunhai1991/redis,xujunhai1991/redis,Soledad89/redis,hornen/redis,atreeyang/redis,AplayER/redis,shreesundara/redis,aim-for-better/redis,GitHubMota/redis,xlzhan/redis,thomasdarimont/redis,gilala/hbjredis,seppo0010/rlite-server,JoeWoo/redis,CodeJuan/redis,SyntaxStacks/redis,neomantra/redis,ErikDubbelboer/redis,hgl888/redis,tellapart/redis,GrimDerp/redis,shreesundara/redis,narma/redis,roth1002/redis,taoguan/redis,blackmady/redis,zhcy/redis,PradheepShrinivasan/redis,GitHubMota/redis,ipmobiletech/redis,xlzhan/redis,YuanZhewei/redis,YuanZhewei/redis,mengyou0304/redis,ituncle/redis,RepmujNetsik/redis,CodeJuan/redis,july2993/redis,zhcy/redis,iandyh/redis,honestme/redis,zczhuohuo/redis,gilala/hbjredis,yossigo/redis,itamarhaber/redis,jingjidejuren/redis,SummonY/redis,modulexcite/redis,ctripcorp/redis,nnog/redis,soloestoy/redis,MOON-CLJ/redis,huyuezheng/redis,colstrom/redis,xlzhan/redis,nnog/redis,YuanZhewei/redis,huyuezheng/redis,narma/redis,NBSW/redis,GitHubMota/redis,honestme/redis,Wangyao14cyy/redis,Wangyao14cyy/redis,JoeWoo/redis,ctripcorp/redis,Aaron1992/redis,mengyou0304/redis,francischan714/redis,z-fork/redis,zczhuohuo/redis,LongXQ/redis,Aaron1992/redis,arijitvt/redis,xuguruogu/redis,linfangrong/redis,csuhawk/redis,csuhawk/redis,linfangrong/redis,hornen/redis,z-fork/redis,colstrom/redis,h0x91b/redis,pkdevbox/redis,cloudrain21/redis,rogerchina/redis,guker/redis,oranagra/redis,francischan714/redis,seandsky/redis,tanghaodong25/redis,gilala/bjredis,mgk/redis,pmem/redis,a-pavlov/redis,seandsky/redis,j0hnma/hszredis,wujf/redis,badboy/redis,ncopa/redis,flashbuckets/redis,z-fork/redis,qiyang0221/redis,jackyan/redis,zhiliaoniu/redis,190235047/redis,wprice/redis,harrisonfeng/redis,ipmobiletech/redis,izhoujie/redis,seppo0010/rlite-server,wprice/redis,wenxueliu/redis_comment,YuraLukashik/redis,ofirluzon/redis,AALEKH/redis,RepmujNetsik/redis,programmecat/redis,weizijun/redis,seppo0010/rlite-server,dayuoba/redis,ouyangkongtong/redis,seppo0010/rlite-server,zhiliaoniu/redis,allengaller/redis,mingyaaaa/redis,Wangyao14cyy/redis,kensou97/redis,wujf/redis,wbailey5/redis,Sciumo/redis,wenxueliu/redis_comment,OmarQunsul/graph-redis,flashbuckets/redis,arijitvt/redis,abhiklodh/redis,simplestbest/redis,saisai/redis,roth1002/redis,healerkx/redis,rouzier/redis,AALEKH/redis,a-pavlov/redis,kensou97/redis,vincent-vivian-liu/redis,dayuoba/redis,valdsJohn/redis,neomantra/redis,mingyaaaa/redis,4396/redis,guker/redis,simplestbest/redis,yossigo/redis,csuhawk/redis,zguangyu/redis,supasate/redis,timothyohare/3rdPartySrc-redis,LongXQ/redis,qiyang0221/redis,cnbin/redis,riyan8250/redis,h0x91b/redis,francischan714/redis,badboy/redis,Markgorden/redis,roth1002/redis,mcanthony/redis,Markgorden/redis,tanghaodong25/redis,NBSW/redis,spinlock/redis,MasahikoSawada/redis,soveran/redis,gilala/bjredis,netroby/redis,wangyikai/redis,sunheehnus/redis,a-pavlov/redis,jingjidejuren/redis,citusdata/redis,xuguruogu/redis,pcarrier/redis,timothyohare/3rdPartySrc-redis,simplestbest/redis,jingjidejuren/redis,thomasdarimont/redis,seppo0010/redis,weizijun/redis,YongMan/redis,Sciumo/redis,antirez/redis,iandyh/redis,blackmady/redis,valdsJohn/redis,healerkx/redis,AplayER/redis,cusspvz/redis,zhcy/redis,iandyh/redis,pedigree/redis,vincent-vivian-liu/redis,MasahikoSawada/redis,YongMan/redis,wujf/redis,elkingtonmcb/redis,ncopa/redis,timothyohare/3rdPartySrc-redis,oranagra/redis,charsyam/redis,seandsky/redis,fengshao0907/redis,yossigo/redis,alenslan/redis,hawkchch/redis,guker/redis,190235047/redis,janekmi/redis,Aliceljm1/redis,PradheepShrinivasan/redis,mcanthony/redis,rogerchina/redis,programmecat/redis,seppo0010/redis,pmem/redis,clamoriniere1A/redis,harrisonfeng/redis,oranagra/redis,citusdata/redis,duanx/redis,hedisdb/hedis,takeshineshiro/redis,riyan8250/redis,kmiku7/redis,190235047/redis,rogerchina/redis,SyntaxStacks/redis,YuraLukashik/redis,kaushik94/redis,universsky/redis,wangyikai/redis,rouzier/redis,shining-yang/redis,supasate/redis,janekmi/redis,healerkx/redis,iandyh/redis,xujunhai1991/redis,twskipper/redis,PKRoma/redis,kaushik94/redis,wujf/redis,yuhc/redis-benchmark-enhanced,wbailey5/redis,antirez/redis,MasahikoSawada/redis,PradheepShrinivasan/redis,mengyou0304/redis,OmarQunsul/graph-redis,soloestoy/redis,kmiku7/redis,hornen/redis,narma/redis,mgk/redis,harrisonfeng/redis,alenslan/redis,blackmady/redis,janekmi/redis,JoeWoo/redis,SummonY/redis,itugs/redis,tjschuck/redis,devaos/redis,netroby/redis,nuxeh/redis,MOON-CLJ/redis,saisai/redis,valdsJohn/redis,cusspvz/redis,universsky/redis,mengyou0304/redis,aim-for-better/redis,janekmi/redis,rogerlz/redis,oranagra/redis,devaos/redis,tjschuck/redis,roth1002/redis,neomantra/redis,hgl888/redis,PKRoma/redis,itamarhaber/redis,timothyohare/3rdPartySrc-redis,cusspvz/redis,fengshao0907/redis,mattsta/redis,Sciumo/redis,StevenTsai/redis,StevenTsai/redis,ErikDubbelboer/redis,RepmujNetsik/redis,GrimDerp/redis,saisai/redis,jasonkying/redis,hgl888/redis,Aaron1992/redis,jasonkying/redis,brg-liuwei/redis,tanghaodong25/redis,riyan8250/redis,LongXQ/redis,supasate/redis,soveran/redis,PradheepShrinivasan/redis,cloudrain21/redis,wprice/redis,j0hnma/hszredis,4396/redis,aim-for-better/redis,cusspvz/redis,davidradunz/redis,shining-yang/redis,sunheehnus/redis,saisai/redis,harrisonfeng/redis,spinlock/redis,ituncle/redis,mumingv/redis,tellapart/redis,holstvoogd/redis,devaos/redis,YuraLukashik/redis,pkdevbox/redis,AALEKH/redis,oranagra/redis,ouyangkongtong/redis,colstrom/redis,duanx/redis,badboy/redis,yuhc/redis-benchmark-enhanced,wprice/redis,ctripcorp/redis,mumingv/redis,hedisdb/hedis,wenxueliu/redis_comment,ctripcorp/redis,tellapart/redis,rogerlz/redis,takeshineshiro/redis,brg-liuwei/redis,gaoxianglong/redis,allengaller/redis,rogerchina/redis,brg-liuwei/redis,NBSW/redis,pedigree/redis,josiahcarlson/redis,dreamquster/redis,flashbuckets/redis,clamoriniere1A/redis,yossigo/redis,4396/redis,sunheehnus/redis,nuxeh/redis,modulexcite/redis,MasahikoSawada/redis,devaos/redis,izhoujie/redis,mgk/redis,kaushik94/redis,gilala/bjredis,huyuezheng/redis,JoeWoo/redis,takeshineshiro/redis,francischan714/redis,SummonY/redis,honestme/redis,soloestoy/redis,tjschuck/redis,taoguan/redis,ytjiang/redis,duanx/redis,NBSW/redis,4396/redis,abhiklodh/redis,seppo0010/redis,pedigree/redis,allengaller/redis,weizijun/redis,Markgorden/redis,twskipper/redis,j0hnma/szredis,modulexcite/redis,tellapart/redis,huyuezheng/redis,ofirluzon/redis,PKRoma/redis,tanghaodong25/redis,thomasdarimont/redis,clamoriniere1A/redis,hawkchch/redis,qiyang0221/redis,soloestoy/redis,cloudrain21/redis,aim-for-better/redis,j0hnma/szredis,davidradunz/redis,pmem/redis,gilala/hbjredis,csuhawk/redis,xujunhai1991/redis,takeshineshiro/redis,zguangyu/redis,izhoujie/redis,twskipper/redis,tjschuck/redis,ofirluzon/redis,rouzier/redis,vincent-vivian-liu/redis,AplayER/redis,jackyan/redis,mcanthony/redis,holstvoogd/redis,ituncle/redis,twskipper/redis,kaushik94/redis,ofirluzon/redis,wbailey5/redis,GrimDerp/redis,CodeJuan/redis,Sciumo/redis,ouyangkongtong/redis,qiyang0221/redis,kmiku7/redis,nuxeh/redis,atreeyang/redis,YongMan/redis,dreamquster/redis,yossigo/redis,kmiku7/redis,rogerlz/redis,pkdevbox/redis,holstvoogd/redis,h0x91b/redis,alenslan/redis,pedigree/redis,nnog/redis,vincent-vivian-liu/redis,mverrilli/redis,mingyaaaa/redis,jingjidejuren/redis,cnbin/redis,jasonkying/redis,soveran/redis,ytjiang/redis,j0hnma/hszredis,mverrilli/redis,shreesundara/redis,citusdata/redis,zczhuohuo/redis,neomantra/redis,ncopa/redis,PKRoma/redis,zguangyu/redis,ipmobiletech/redis,190235047/redis,GitHubMota/redis,shining-yang/redis,zguangyu/redis,badboy/redis,yuhc/redis-benchmark-enhanced,jackyan/redis,ipmobiletech/redis,programmecat/redis,mattsta/redis,pmem/redis,zhiliaoniu/redis,Aliceljm1/redis,guker/redis,fengshao0907/redis,ErikDubbelboer/redis,holstvoogd/redis,linfangrong/redis,elkingtonmcb/redis,antirez/redis,josiahcarlson/redis,clamoriniere1A/redis,fengshao0907/redis,hedisdb/hedis,z-fork/redis,xuguruogu/redis,arijitvt/redis,modulexcite/redis,gaoxianglong/redis,neomantra/redis,blackmady/redis,j0hnma/hszredis,antirez/redis,universsky/redis,itamarhaber/redis,pcarrier/redis,alenslan/redis,mverrilli/redis,duanx/redis,sunheehnus/redis,MOON-CLJ/redis,honestme/redis,gilala/hbjredis,xuguruogu/redis,SyntaxStacks/redis,charsyam/redis,zczhuohuo/redis