]> git.saurik.com Git - redis.git/commitdiff
Fixed typo in getClientLimitClassByName()
authorantirez <antirez@gmail.com>
Wed, 25 Jan 2012 17:07:56 +0000 (18:07 +0100)
committerantirez <antirez@gmail.com>
Wed, 25 Jan 2012 17:07:56 +0000 (18:07 +0100)
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;
 }