summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorjudeng <abc3844@126.com>2022-06-21 12:02:22 +0800
committerGitHub <noreply@github.com>2022-06-20 21:02:22 -0700
commitff6419658bd8c8800734a7f19520c2aa7cd68a90 (patch)
tree648cf9c6132e461417411b35bbc6c69faec2ff5f /src/cluster.h
parent99a425d0f3b7b00896cb855d5de4ae93be1fe3f0 (diff)
downloadredis-ff6419658bd8c8800734a7f19520c2aa7cd68a90.tar.gz
Optimize the performance of clusterSendPing for large clusters (#10624)
Optimize the performance of clusterSendPing by improving speed of checking for duplicate items in gossip.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 1349a7a92..c50cfff80 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -127,6 +127,7 @@ typedef struct clusterNode {
may be NULL even if the node is a slave
if we don't have the master node in our
tables. */
+ unsigned long long last_in_ping_gossip; /* The number of the last carried in the ping gossip section */
mstime_t ping_sent; /* Unix time we sent latest ping */
mstime_t pong_received; /* Unix time we received the pong */
mstime_t data_received; /* Unix time we received any data */