Sentinel: handle SRI_PROMOTED flag correctly.
Sentinel: handle SRI_PROMOTED flag correctly.

Lack of check of the SRI_PROMOTED flag caused Sentienl to act with the
promoted slave turned into a master during failover like if it was a
normal instance.

Normally this problem was not apparent because during real failovers the
old master is down so the bugged code path was not entered, however with
manual failovers via the SENTINEL FAILOVER command, the problem was
easily triggered.

This commit prevents promoted slaves from getting reconfigured, moreover
we now explicitly check that during a failover the slave turning into a
master is the one we selected for promotion and not a different one.

darksideofthemoo/redis-histogram,ttuna/msot-redis,ttuna/msot-redis,splitice/redis,ramonsnir/redis,ksarch-saas/redis,MSOpenTech/redis,splitice/redis,darksideofthemoo/redis-histogram,splitice/redis,ttuna/msot-redis,himoca/redis,louisliangjun/redis,darksideofthemoo/redis-histogram,ksarch-saas/redis,slfs007/mk-redis,HunanTV/redis,splitice/redis,ramonsnir/redis,ksarch-saas/redis,maodeyi/redis_lua,HunanTV/redis,ksarch-saas/redis,louisliangjun/redis,xuzhezhaozhao/redis_reading,jxwr/redis,MSOpenTech/redis,maodeyi/redis_lua,slfs007/mk-redis,slfs007/mk-redis,himoca/redis,ttuna/msot-redis,spearhead-ea/redis,MSOpenTech/redis,spearhead-ea/redis,MSOpenTech/redis,louisliangjun/redis,xuzhezhaozhao/redis_reading,darksideofthemoo/redis-histogram,maodeyi/redis_lua,jxwr/redis,spearhead-ea/redis,HunanTV/redis,ttuna/msot-redis,jxwr/redis,HunanTV/redis,louisliangjun/redis,MSOpenTech/redis,xuzhezhaozhao/redis_reading,ramonsnir/redis,himoca/redis,xuzhezhaozhao/redis_reading