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:
Wen Hui 2024-06-19 17:16:35 -04:00 committed by GitHub
parent ae2d4217e1
commit e84eda9092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);