Cluster: periodically call clusterUpdateState() when cluster is down.
Cluster: periodically call clusterUpdateState() when cluster is down.

Usually we update the cluster state (to understand if we should accept
queries or reply with an error) only when there is a change in the state
of the nodes. However for the "delayed rejoin" feature to work, that is,
for a master to wait some time before accepting queries again after it
rejoins the majority, we need to periodically update the last time when
the node was partitioned away from the majority.

With this commit if the cluster is down we update the state ten times
per second.

csuhawk/redis,mgk/redis,xlzhan/redis,ctripcorp/redis,AALEKH/redis,jackyan/redis,mattsta/redis,msn217/redis-3.0-annotated,xlzhan/redis,ton31337/redis,thomasdarimont/redis,atreeyang/redis,holstvoogd/redis,himoca/redis,kaushik94/redis,ErikDubbelboer/redis,yuzhangjob/redis-3.0-annotated-unstable,shshlzh/redis-3.0-annotated,CodeJuan/redis,linfangrong/redis,MasahikoSawada/redis,h0x91b/redis,jasonkying/redis,Hailei/redis,guker/redis,RepmujNetsik/redis,ksarch-saas/redis,fengshao0907/redis-3.0-annotated,whille/redis-3.0-annotated,JoeWoo/redis,pedigree/redis,jbochi/redis,timothyohare/3rdPartySrc-redis,blackmady/redis,iandyh/redis,neomantra/redis,MSOpenTech/redis,iandyh/redis,moonbingbing/redis-3.0-annotated,ReadCode/redis-3.0-annotated,twskipper/redis,zczhuohuo/redis,vincent-vivian-liu/redis,wbailey5/redis,shining-yang/redis,gaoxianglong/redis,yybirdcf/learn-redis,hgl888/redis,seppo0010/rlite-server,takeshineshiro/redis,ituncle/redis,j0hnma/hszredis,neomantra/redis,OmarQunsul/graph-redis,mumingv/redis,gilala/redis,fengshao0907/redis,mengyou0304/redis,gongice/redis-3.0-annotated,StevenTsai/redis,rrsean/redis-3.0-annotated,soloestoy/redis,zy416548283/redis-3.0-annotated,Hailei/redis,clamoriniere1A/redis,ituncle/redis,francischan714/redis,atreeyang/redis,ReadCode/redis-3.0-annotated,francischan714/redis,brg-liuwei/redis,spearhead-ea/redis,spearhead-ea/redis,NBSW/redis,honestme/redis,sunlianqiang/redis-3.0-annotated,SummonY/redis,SummonY/redis,allengaller/redis,nuxeh/redis,Soledad89/redis,mumingv/redis-3.0-annotated,gilala/redis,gilala/hredis,sunheehnus/redis,gilala/hbjredis,atreeyang/redis,aim-for-better/redis,idning/redis,holstvoogd/redis,ofirluzon/redis,simplestbest/redis,soveran/redis,Aaron1992/redis,StevenTsai/redis,ytjiang/redis,badboy/redis,Markgorden/redis,kensou97/redis,mcanthony/redis,moonbingbing/redis-3.0-annotated,ketor/redis,netroby/redis,NBSW/redis,yybirdcf/learn-redis,izhoujie/redis,ksarch-saas/redis,oranagra/redis,GrimDerp/redis,ituncle/redis,takeshineshiro/redis,mattsta/redis,Wangyao14cyy/redis,a-pavlov/redis,zhcy/redis,netroby/redis,RepmujNetsik/redis,jackyan/redis,mverrilli/redis,ttuna/msot-redis,splitice/redis,miaoyc1989/redis-3.0-annotated,Hailei/redis,badboy/redis,mengzhejin/RedisStudy,MasahikoSawada/redis,cloudrain21/redis,saisai/redis,seandsky/redis,miaoyc1989/redis-3.0-annotated,nuxeh/redis,splitice/redis,oranagra/redis,mingyaaaa/redis,SyntaxStacks/redis,pcarrier/redis,dreamquster/redis,gilala/bjredis,dreamquster/redis,yossigo/redis,huyuezheng/redis,duanx/redis,devaos/redis,seppo0010/rlite-server,elkingtonmcb/redis,mengyou0304/redis,shreesundara/redis,AplayER/redis,wenxueliu/redis_comment,Aaron1992/redis,ipmobiletech/redis,HunanTV/redis,pkdevbox/redis,valdsJohn/redis,wenxueliu/redis_comment,yybirdcf/learn-redis,HouKangkang/redis-3.0-annotated,huangz1990/redis-3.0-annotated,HeartSaVioR/redis,nnog/redis,csuhawk/redis,zczhuohuo/redis,seandsky/redis,kaushik94/redis,jasonkying/redis,zczhuohuo/redis,onlymellb/redis-3.0-annotated,Aaron1992/redis,taoguan/redis,ouyangkongtong/redis,mattsta/redis,zguangyu/redis,jacklee0810/redis-3.0-annotated,vincent-vivian-liu/redis,ytjiang/redis,rouzier/redis,tanghaodong25/redis,ErikDubbelboer/redis,taoguan/redis,YongMan/redis,narma/redis,harrisonfeng/redis,devaos/redis,xuzhezhaozhao/redis_reading,july2993/redis,Soledad89/redis,dreamquster/redis,dayuoba/redis,brg-liuwei/redis,ksarch-saas/redis,seppo0010/rlite-server,neomantra/redis,janekmi/redis,xujunhai1991/redis,GitHubMota/redis,blackmady/redis,tjschuck/redis,rogerlz/redis,dongqifan2/redis-3.0-annotated,kensou97/redis,LongXQ/redis,gilala/bjredis,citusdata/redis,gilala/bjredis,gechong/redis-3.0-annotated,dayuoba/redis,190235047/redis,thomasdarimont/redis,PradheepShrinivasan/redis,charsyam/redis,j0hnma/szredis,wujf/redis,simplestbest/redis,SyntaxStacks/redis,Aliceljm1/redis,190235047/redis,jackyan/redis,jasonkying/redis,ton31337/redis,YongMan/redis,fankeke/redis-3.0-annotated,NBSW/redis,rouzier/redis,universsky/redis,spinlock/redis,nuxeh/redis,itugs/redis,ksarch-saas/redis,xuzhezhaozhao/redis_reading,zhoudayang/redis,citusdata/redis,rogerlz/redis,guker/redis,ncopa/redis,saisai/redis,cnbin/redis,itugs/redis,supasate/redis,ofirluzon/redis,AplayER/redis,shining-yang/redis,mengzhejin/RedisStudy,cusspvz/redis,soveran/redis,tanghaodong25/redis,xlzhan/redis,jingjidejuren/redis,colstrom/redis,honestme/redis,4396/redis,moonbingbing/redis-3.0-annotated,jasonkying/redis,hgl888/redis,colstrom/redis,thomasdarimont/redis,Soledad89/redis,allengaller/redis,jacklee0810/redis-3.0-annotated,gechong/redis-3.0-annotated,fengshao0907/redis,mumingv/redis,holstvoogd/redis,antirez/redis,NBSW/redis,yuzhangjob/redis-3.0-annotated-unstable,timothyohare/3rdPartySrc-redis,rouzier/redis,aim-for-better/redis,whille/redis-3.0-annotated,maodeyi/redis_lua,PKRoma/redis,tzq668766/redis-3.0-annotated,h0x91b/redis,taoguan/redis,huyuezheng/redis,saisai/redis,itamarhaber/redis,tzq668766/redis-3.0-annotated,zhaobo1023/redis-3.0-annotated,zhaobo1023/redis-3.0-annotated,mverrilli/redis,ipmobiletech/redis,csuhawk/redis,4396/redis,GrimDerp/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,GrimDerp/redis,gaoxianglong/redis,0x55/redis-3.0-annotated,universsky/redis,wuyu201321060203/redis-3.0-annotated,zhcy/redis,harrisonfeng/redis,yuhc/redis-benchmark-enhanced,shining-yang/redis,xujunhai1991/redis,kaushik94/redis,shreesundara/redis,flashbuckets/redis,YuraLukashik/redis,dongqifan2/redis-3.0-annotated,MasahikoSawada/redis,mgk/redis,tjschuck/redis,narma/redis,gilala/hbjredis,shshlzh/redis-3.0-annotated,LongXQ/redis,splitice/redis,buobao/redis-3.0-annotated,citusdata/redis,mumingv/redis-3.0-annotated,buobao/redis-3.0-annotated,sunheehnus/redis,francischan714/redis,modulexcite/redis,kaushik94/redis,kmiku7/redis,zhcy/redis,wangyikai/redis,gilala/hbjredis,cloudrain21/redis,oranagra/redis,zhaobo1023/redis-3.0-annotated,xujunhai1991/redis,RepmujNetsik/redis,josiahcarlson/redis,GitHubMota/redis,devaos/redis,kensou97/redis,a-pavlov/redis,cnbin/redis,MSOpenTech/redis,ipmobiletech/redis,spearhead-ea/redis,aim-for-better/redis,xuzhezhaozhao/redis_reading,wprice/redis,ketor/redis,clamoriniere1A/redis,YuraLukashik/redis,zhoudayang/redis,brg-liuwei/redis,fengshao0907/redis,drinkthere/redis-3.0-annotated,GrimDerp/redis,linfangrong/redis,z-fork/redis,yuhc/redis-benchmark-enhanced,citusdata/redis,shining-yang/redis,tanghaodong25/redis,nilyang/redis-tdd-annotation,healerkx/redis,yuhc/redis-benchmark-enhanced,YuanZhewei/redis,kmiku7/redis,weizijun/redis,hgl888/redis,yossigo/redis,universsky/redis,sunlianqiang/redis-3.0-annotated,davidradunz/redis,neomantra/redis,seppo0010/redis,abhiklodh/redis,huangz1990/redis-3.0-annotated,nnog/redis,fankeke/redis-3.0-annotated,louisliangjun/redis,zhcy/redis,seppo0010/redis,roth1002/redis,july2993/redis,MOON-CLJ/redis,AplayER/redis,HunanTV/redis,xuguruogu/redis,RepmujNetsik/redis,wuyu201321060203/redis-3.0-annotated,ton31337/redis,zhoudayang/redis,h0x91b/redis,haima-zju/redis-3.0-annotated,HeartSaVioR/redis,xlzhan/redis,190235047/redis,j0hnma/szredis,mengzhejin/RedisStudy,izhoujie/redis,slfs007/mk-redis,aim-for-better/redis,AplayER/redis,magastzheng/redis-3.0-annotated,wprice/redis,soveran/redis,hawkchch/redis,cusspvz/redis,mcanthony/redis,wuyu201321060203/redis-3.0-annotated,GitHubMota/redis,wangyikai/redis,Aliceljm1/redis-3.0-annotated,wenxueliu/redis_comment,seppo0010/redis,narma/redis,clamoriniere1A/redis,ofirluzon/redis,hgl888/redis,cusspvz/redis,CodeJuan/redis,gilala/redis,gilala/redis,jingjidejuren/redis,ErikDubbelboer/redis,josiahcarlson/redis,nilyang/redis-tdd-annotation,Sciumo/redis,ituncle/redis,seandsky/redis,CodeJuan/redis,unasm/redis-3.0-annotated,j0hnma/szredis,MSOpenTech/redis,tzq668766/redis-3.0-annotated,itamarhaber/redis,pcarrier/redis,AALEKH/redis,buobao/redis-3.0-annotated,wujf/redis,MOON-CLJ/redis,timothyohare/3rdPartySrc-redis,antirez/redis,july2993/redis,jxwr/redis,jbochi/parallel_redis,OmarQunsul/graph-redis,shshlzh/redis-3.0-annotated,vincent-vivian-liu/redis,sunlianqiang/redis-3.0-annotated,riyan8250/redis,Aliceljm1/redis,haima-zju/redis-3.0-annotated,hedisdb/hedis,jbochi/parallel_redis,darksideofthemoo/redis-histogram,alenslan/redis,xuguruogu/redis,wbailey5/redis,antirez/redis,gilala/hredis,Wangyao14cyy/redis,PKRoma/redis,qiyang0221/redis,ctripcorp/redis,janekmi/redis,weizijun/redis,honestme/redis,arijitvt/redis,valdsJohn/redis,rogerchina/redis,spinlock/redis,alenslan/redis,haima-zju/redis-3.0-annotated,HeartSaVioR/redis,takeshineshiro/redis,YongMan/redis,dreamquster/redis,rogerlz/redis,abhiklodh/redis,fankeke/redis-3.0-annotated,Soledad89/redis,oranagra/redis,supasate/redis,rouzier/redis,xuguruogu/redis,riyan8250/redis,Sciumo/redis,miaoyc1989/redis-3.0-annotated,adamweixuan/redis-3.0-annotated,YuraLukashik/redis,yossigo/redis,gilala/hbjredis,neomantra/redis,fengshao0907/redis-3.0-annotated,riyan8250/redis,drinkthere/redis-3.0-annotated,HeartSaVioR/redis,davidradunz/redis,zhiliaoniu/redis,dongqifan2/redis-3.0-annotated,YongMan/redis,hornen/redis,rogerchina/redis,seppo0010/redis,wbailey5/redis,iandyh/redis,PKRoma/redis,JoeWoo/redis,ErikDubbelboer/redis,cloudrain21/redis,tjschuck/redis,charsyam/redis,flashbuckets/redis,wangyikai/redis,hedisdb/hedis,HunanTV/redis,thomasdarimont/redis,charsyam/redis,weizijun/redis,duanx/redis,YuanZhewei/redis,duanx/redis,zguangyu/redis,HunanTV/redis,spinlock/redis,Markgorden/redis,zhiliaoniu/redis,ramonsnir/redis,zguangyu/redis,onlymellb/redis-3.0-annotated,fengshao0907/redis,nnog/redis,SyntaxStacks/redis,SummonY/redis,nuxeh/redis,modulexcite/redis,pmem/redis,adamweixuan/redis-3.0-annotated,janekmi/redis,MSOpenTech/redis,mengyou0304/redis,july2993/redis,francischan714/redis,ytjiang/redis,mumingv/redis-3.0-annotated,zczhuohuo/redis,Markgorden/redis,rogerchina/redis,blackmady/redis,kmiku7/redis,adamweixuan/redis-3.0-annotated,z-fork/redis,tellapart/redis,oranagra/redis,unasm/redis-3.0-annotated,cnbin/redis,modulexcite/redis,mverrilli/redis,hedisdb/hedis,rogerlz/redis,jackyan/redis,jbochi/parallel_redis,alenslan/redis,magastzheng/redis-3.0-annotated,0x55/redis-3.0-annotated,StevenTsai/redis,hawkchch/redis,pmem/redis,h0x91b/redis,allengaller/redis,zy416548283/redis-3.0-annotated,soloestoy/redis,dayuoba/redis,wbailey5/redis,GitHubMota/redis,AALEKH/redis,darksideofthemoo/redis-histogram,spinlock/redis,a-pavlov/redis,colstrom/redis,vincent-vivian-liu/redis,duanx/redis,gongice/redis-3.0-annotated,ytjiang/redis,ttuna/msot-redis,weizijun/redis,j0hnma/hszredis,mingyaaaa/redis,soloestoy/redis,Wangyao14cyy/redis,holstvoogd/redis,mverrilli/redis,MSOpenTech/redis,j0hnma/hszredis,healerkx/redis,alenslan/redis,YuraLukashik/redis,sunheehnus/redis,himoca/redis,SyntaxStacks/redis,josiahcarlson/redis,soloestoy/redis,Aaron1992/redis,hornen/redis,maodeyi/redis_lua,Aliceljm1/redis-3.0-annotated,netroby/redis,nnog/redis,guker/redis,healerkx/redis,wprice/redis,kensou97/redis,elkingtonmcb/redis,pmem/redis,twskipper/redis,jxwr/redis,mgk/redis,shreesundara/redis,pmem/redis,roth1002/redis,Sciumo/redis,supasate/redis,linfangrong/redis,zhiliaoniu/redis,netroby/redis,wenxueliu/redis_comment,rrsean/redis-3.0-annotated,pcarrier/redis,mgk/redis,charsyam/redis,jingjidejuren/redis,blackmady/redis,pedigree/redis,Hailei/redis,maodeyi/redis_lua,darksideofthemoo/redis-histogram,qiyang0221/redis,ncopa/redis,devaos/redis,kmiku7/redis,AALEKH/redis,csuhawk/redis,xuzhezhaozhao/redis_reading,soloestoy/redis,mingyaaaa/redis,ramonsnir/redis,brg-liuwei/redis,magastzheng/redis-3.0-annotated,JoeWoo/redis,zguangyu/redis,a-pavlov/redis,flashbuckets/redis,idning/redis,PKRoma/redis,mingyaaaa/redis,elkingtonmcb/redis,LongXQ/redis,arijitvt/redis,pedigree/redis,huangz1990/redis-3.0-annotated,sunheehnus/redis,louisliangjun/redis,izhoujie/redis,YuanZhewei/redis,ctripcorp/redis,4396/redis,cloudrain21/redis,timothyohare/3rdPartySrc-redis,hornen/redis,itugs/redis,wujf/redis,zy416548283/redis-3.0-annotated,gilala/hredis,davidradunz/redis,yossigo/redis,wprice/redis,saisai/redis,whille/redis-3.0-annotated,arijitvt/redis,pkdevbox/redis,msn217/redis-3.0-annotated,elkingtonmcb/redis,iandyh/redis,huyuezheng/redis,HouKangkang/redis-3.0-annotated,gaoxianglong/redis,mumingv/redis,shshlzh/redis-3.0-annotated,yybirdcf/learn-redis,qiyang0221/redis,simplestbest/redis,jbochi/redis,ttuna/msot-redis,Aliceljm1/redis,seandsky/redis,darksideofthemoo/redis-histogram,wangyikai/redis,simplestbest/redis,Wangyao14cyy/redis,itugs/redis,yossigo/redis,roth1002/redis,soveran/redis,ncopa/redis,davidradunz/redis,mengzhejin/RedisStudy,roth1002/redis,Aliceljm1/redis-3.0-annotated,itamarhaber/redis,jbochi/redis,4396/redis,190235047/redis,jacklee0810/redis-3.0-annotated,arijitvt/redis,mcanthony/redis,onlymellb/redis-3.0-annotated,Aliceljm1/redis,OmarQunsul/graph-redis,PradheepShrinivasan/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,tellapart/redis,unasm/redis-3.0-annotated,rrsean/redis-3.0-annotated,antirez/redis,linfangrong/redis,0x55/redis-3.0-annotated,janekmi/redis,pcarrier/redis,ttuna/msot-redis,charsyam/redis,programmecat/redis,fengshao0907/redis-3.0-annotated,programmecat/redis,jxwr/redis,valdsJohn/redis,louisliangjun/redis,badboy/redis,hornen/redis,gechong/redis-3.0-annotated,harrisonfeng/redis,xuguruogu/redis,gilala/hredis,honestme/redis,ketor/redis,izhoujie/redis,ton31337/redis,louisliangjun/redis,z-fork/redis,HouKangkang/redis-3.0-annotated,z-fork/redis,StevenTsai/redis,PradheepShrinivasan/redis,abhiklodh/redis,pedigree/redis,itamarhaber/redis,riyan8250/redis,CodeJuan/redis,ipmobiletech/redis,YuanZhewei/redis,zhoudayang/redis,j0hnma/hszredis,rogerchina/redis,ouyangkongtong/redis,clamoriniere1A/redis,valdsJohn/redis,supasate/redis,MasahikoSawada/redis,splitice/redis,tellapart/redis,badboy/redis,colstrom/redis,Sciumo/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,flashbuckets/redis,atreeyang/redis,allengaller/redis,miaoyc1989/redis-3.0-annotated,healerkx/redis,takeshineshiro/redis,zhiliaoniu/redis,cnbin/redis,josiahcarlson/redis,himoca/redis,mcanthony/redis,hedisdb/hedis,MOON-CLJ/redis,OmarQunsul/graph-redis,slfs007/mk-redis,tanghaodong25/redis,JoeWoo/redis,wujf/redis,jingjidejuren/redis,idning/redis,ttuna/msot-redis,hawkchch/redis,harrisonfeng/redis,modulexcite/redis,0x55/redis-3.0-annotated,mengyou0304/redis,Markgorden/redis,twskipper/redis,ctripcorp/redis,ncopa/redis,idning/redis,ouyangkongtong/redis,msn217/redis-3.0-annotated,ramonsnir/redis,mumingv/redis,pkdevbox/redis,qiyang0221/redis,gongice/redis-3.0-annotated,gaoxianglong/redis,yuhc/redis-benchmark-enhanced,drinkthere/redis-3.0-annotated,nilyang/redis-tdd-annotation,dayuoba/redis,nilyang/redis-tdd-annotation,seppo0010/rlite-server,huyuezheng/redis,PKRoma/redis,universsky/redis,pkdevbox/redis,PradheepShrinivasan/redis,taoguan/redis,tellapart/redis,slfs007/mk-redis,cusspvz/redis,tjschuck/redis,guker/redis,abhiklodh/redis,ReadCode/redis-3.0-annotated,gilala/bjredis,j0hnma/szredis,xujunhai1991/redis,programmecat/redis,ofirluzon/redis,SummonY/redis,shreesundara/redis,ouyangkongtong/redis,programmecat/redis,yuzhangjob/redis-3.0-annotated-unstable,hawkchch/redis,LongXQ/redis,ofirluzon/redis,wuyu201321060203/redis-3.0-annotated,twskipper/redis