summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-09 11:12:51 +0200
committerantirez <antirez@gmail.com>2020-05-09 11:12:51 +0200
commit4387ba6a17887d23c1919619f517b521eacbb665 (patch)
tree706450d4dec949dc56e62b57fb48bf03dcb15f7b
parent79de9d6c787aa28c4fb2bc49b34bb81526ae7f91 (diff)
downloadredis-4387ba6a17887d23c1919619f517b521eacbb665.tar.gz
Cluster: clarify we always resolve the sender.
-rw-r--r--src/cluster.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 50c79f4f6..a2fab323a 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -1741,7 +1741,9 @@ int clusterProcessPacket(clusterLink *link) {
if (totlen != explen) return 1;
}
- /* Check if the sender is a known node. */
+ /* Check if the sender is a known node. Note that for incoming connections
+ * we don't store link->node information, but resolve the node by the
+ * ID in the header each time in the current implementation. */
sender = clusterLookupNode(hdr->sender);
/* Update the last time we saw any data from this node. We