mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Sentinel: fix sentinelTryConnectionSharing() by checking for no match
Trivial omission of the obvious no-match case.
This commit is contained in:
parent
164b6bbab5
commit
c54de703f2
@ -1023,6 +1023,7 @@ int sentinelTryConnectionSharing(sentinelRedisInstance *ri) {
|
||||
if (master == ri->master) continue;
|
||||
match = getSentinelRedisInstanceByAddrAndRunID(master->sentinels,
|
||||
NULL,0,ri->runid);
|
||||
if (match == NULL) continue; /* No match. */
|
||||
if (match == ri) continue; /* Should never happen but... safer. */
|
||||
|
||||
/* We identified a matching Sentinel, great! Let's free our link
|
||||
|
Loading…
x
Reference in New Issue
Block a user