From d68d9d578d7e7456f78bd2dfcfd21e892ab3f0b0 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Fri, 31 May 2024 11:38:41 +0800 Subject: [PATCH] Fix the tls issue about CLUSTER SLOTS cache Signed-off-by: zhaozhao.zz --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 33c5a0ee1b..6744075c72 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1415,7 +1415,7 @@ void clusterCommandSlots(client *c) { * 3) node ID * ... continued until done */ - connTypeForCaching conn_type = connIsTLS(c->conn); + connTypeForCaching conn_type = shouldReturnTlsInfo(); if (detectAndUpdateCachedNodeHealth()) clearCachedClusterSlotsResponse();