Fixed typo in getClientLimitClassByName()

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

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