summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-06-16 11:45:03 +0200
committerantirez <antirez@gmail.com>2020-06-16 11:45:11 +0200
commit4b8d8826afa0f240b26977e9d128144ebf8d5d7a (patch)
treec060dc19767c97f03a389d25900663267b9f833d /src/cluster.h
parent62fc7f4f243206d26c3b5246f0887d6cc9925149 (diff)
downloadredis-4b8d8826afa0f240b26977e9d128144ebf8d5d7a.tar.gz
Use cluster connections too, to limit maxclients.
See #7401.
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 d3af4a355..596a4629a 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -283,5 +283,6 @@ typedef struct {
clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashslot, int *ask);
int clusterRedirectBlockedClientIfNeeded(client *c);
void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_code);
+unsigned long getClusterConnectionsCount(void);
#endif /* __CLUSTER_H */