Fixed typo in getClientLimitClassByName()

This commit is contained in:
antirez 2012-01-25 18:07:56 +01:00
parent c026bde035
commit f70afca5e5

View 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;
}