protect updating current state with lock
protect updating current state with lock

ShrCheng/redis_failover,flowdock/redis_failover,ryanlecompte/redis_failover,jongillies/redis_failover,SPBTV/spbtv_redis_failover