mirror of https://mirror.osredm.com/root/redis.git
Fixed typo in getClientLimitClassByName()
This commit is contained in:
parent
a30a8ae7ba
commit
c715c9b8bf
|
@ -1228,7 +1228,7 @@ int getClientLimitClass(redisClient *c) {
|
||||||
int getClientLimitClassByName(char *name) {
|
int getClientLimitClassByName(char *name) {
|
||||||
if (!strcasecmp(name,"normal")) return REDIS_CLIENT_LIMIT_CLASS_NORMAL;
|
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,"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;
|
else return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue