Remove useless code in sentinel source code (#676)
Just remove them. Signed-off-by: hwware <wen.hui.ware@gmail.com>
This commit is contained in:
parent
ae2d4217e1
commit
e84eda9092
@ -5109,11 +5109,6 @@ void sentinelHandleRedisInstance(sentinelRedisInstance *ri) {
|
||||
/* Every kind of instance */
|
||||
sentinelCheckSubjectivelyDown(ri);
|
||||
|
||||
/* Primaries and replicas */
|
||||
if (ri->flags & (SRI_PRIMARY | SRI_REPLICA)) {
|
||||
/* Nothing so far. */
|
||||
}
|
||||
|
||||
/* Only primaries */
|
||||
if (ri->flags & SRI_PRIMARY) {
|
||||
sentinelCheckObjectivelyDown(ri);
|
||||
|
Loading…
x
Reference in New Issue
Block a user