Sentinel: call sentinelFlushConfig() to persist state when needed.
Sentinel: call sentinelFlushConfig() to persist state when needed.

Also the sentinel configuration rewriting was modified in order to
account for failover in progress, where we need to provide the promoted
slave address as master address, and the old master address as one of
the slaves address.

JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis