X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7fe8d49a70c8ae87dbcc080872d327d1485c18c5..b80b1c5914435c3a013cfe9b19e39f9de35ab06e:/src/networking.c?ds=sidebyside diff --git a/src/networking.c b/src/networking.c index d5b8224e..3938f3f6 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1203,7 +1203,7 @@ void rewriteClientCommandArgument(redisClient *c, int i, robj *newval) { * * Note: this function is very fast so can be called as many time as * the caller wishes. The main usage of this function currently is - * enforcing the client output lenght limits. */ + * enforcing the client output length limits. */ unsigned long getClientOutputBufferMemoryUsage(redisClient *c) { unsigned long list_item_size = sizeof(listNode); @@ -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; } @@ -1294,7 +1294,7 @@ void asyncCloseClientOnOutputBufferLimitReached(redisClient *c) { sds client = getClientInfoString(c); freeClientAsync(c); - redisLog(REDIS_NOTICE,"Client %s scheduled to be closed ASAP for overcoming of output buffer limits.", client); + redisLog(REDIS_WARNING,"Client %s scheduled to be closed ASAP for overcoming of output buffer limits.", client); sdsfree(client); } }