]> git.saurik.com Git - redis.git/blobdiff - src/networking.c
Only incremnet stats for key miss/hit when the key is semantically accessed in read...
[redis.git] / src / networking.c
index fe745102f1b8288158e6cb224f5d5a36d304e641..3938f3f6410f759f789b91b488e97e2173284cb8 100644 (file)
@@ -1228,7 +1228,7 @@ int getClientLimitClass(redisClient *c) {
 int getClientLimitClassByName(char *name) {
     if (!strcasecmp(name,"normal")) return REDIS_CLIENT_LIMIT_CLASS_NORMAL;
     else if (!strcasecmp(name,"slave")) return REDIS_CLIENT_LIMIT_CLASS_SLAVE;
-    else if (!strcasecmp(name,"pubsub")) return REDIS_CLIENT_LIMIT_CLASS_SLAVE;
+    else if (!strcasecmp(name,"pubsub")) return REDIS_CLIENT_LIMIT_CLASS_PUBSUB;
     else return -1;
 }