summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorHarkrishn Patro <harkrisp@amazon.com>2022-07-03 23:18:57 -0700
committerGitHub <noreply@github.com>2022-07-04 09:18:57 +0300
commit0ab885a685101522017021ac2d2b46b42d268f26 (patch)
treef86373af640b61d9040b8ef9a6bb75f06dd3efd3 /src/server.h
parent679344a2b064735b1807ccd70ef318a5829a277b (diff)
downloadredis-0ab885a685101522017021ac2d2b46b42d268f26.tar.gz
Account sharded pubsub channels memory consumption (#10925)
Account sharded pubsub channels memory consumption in client memory usage computation to accurately evict client based on the set threshold for `maxmemory-clients`.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index 3021e7683..4b4bd29e4 100644
--- a/src/server.h
+++ b/src/server.h
@@ -3000,6 +3000,7 @@ int pubsubPublishMessageAndPropagateToCluster(robj *channel, robj *message, int
void addReplyPubsubMessage(client *c, robj *channel, robj *msg, robj *message_bulk);
int serverPubsubSubscriptionCount();
int serverPubsubShardSubscriptionCount();
+size_t pubsubMemOverhead(client *c);
/* Keyspace events notification */
void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid);