From 4387ba6a17887d23c1919619f517b521eacbb665 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 9 May 2020 11:12:51 +0200 Subject: [PATCH] Cluster: clarify we always resolve the sender. --- src/cluster.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- GitLab