Sentinel: releaseSentinelRedisInstance() top comment fixed.
The claim about unlinking the instance from the connected hash tables was the opposite of the reality. Also the current actual behavior is safer in most cases, so it is better to manually unlink when needed.
This commit is contained in:
parent
9d0f46c6f5
commit
cf2835519e
@ -940,7 +940,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
|
||||
}
|
||||
|
||||
/* Release this instance and all its slaves, sentinels, hiredis connections.
|
||||
* This function also takes care of unlinking the instance from the main
|
||||
* This function does not take care of unlinking the instance from the main
|
||||
* masters table (if it is a master) or from its master sentinels/slaves table
|
||||
* if it is a slave or sentinel. */
|
||||
void releaseSentinelRedisInstance(sentinelRedisInstance *ri) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user