Introduced three client limit classes: normal, slave, pubsub

This commit is contained in:
antirez
2012-01-17 12:43:01 +01:00
parent 3853c16839
commit 498dc5557c
2 changed files with 21 additions and 0 deletions

View File

@ -146,6 +146,12 @@
#define REDIS_REQ_INLINE 1
#define REDIS_REQ_MULTIBULK 2
/* Client classes for client limits, currently used only for
* the max-client-output-buffer limit implementation. */
#define REDIS_CLIENT_LIMIT_CLASS_NORMAL 0
#define REDIS_CLIENT_LIMIT_CLASS_SLAVE 1
#define REDIS_CLIENT_LIMIT_CLASS_PUBSUB 2
/* Slave replication state - slave side */
#define REDIS_REPL_NONE 0 /* No active replication */
#define REDIS_REPL_CONNECT 1 /* Must connect to master */