summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-01-10 15:33:42 +0100
committerantirez <antirez@gmail.com>2014-01-13 16:39:40 +0100
commit0ca750d94add42009ba1d1b645fa23c9dcf3796d (patch)
tree81112af6701dc9535e24f71c34edbe108b2069ba
parent1f9580c125e1a332c19a381bf496b4b63ed4dd2b (diff)
downloadredis-0ca750d94add42009ba1d1b645fa23c9dcf3796d.tar.gz
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.
-rw-r--r--src/sentinel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 611c31f35..3d1477c97 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -942,7 +942,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) {