fix typo in comments (redis.c, networking.c)

This commit is contained in:
Yecheng Fu
2012-11-01 18:14:55 +08:00
committed by antirez
parent 2ea41242f6
commit f0266532fc
2 changed files with 10 additions and 10 deletions

View File

@ -1548,7 +1548,7 @@ void call(redisClient *c, int flags) {
}
/* If this function gets called we already read a whole
* command, argments are in the client argv/argc fields.
* command, arguments are in the client argv/argc fields.
* processCommand() execute the command or prepare the
* server for a bulk read from the client.
*
@ -2229,7 +2229,7 @@ void infoCommand(redisClient *c) {
}
void monitorCommand(redisClient *c) {
/* ignore MONITOR if aleady slave or in monitor mode */
/* ignore MONITOR if already slave or in monitor mode */
if (c->flags & REDIS_SLAVE) return;
c->flags |= (REDIS_SLAVE|REDIS_MONITOR);
@ -2328,7 +2328,7 @@ int freeMemoryIfNeeded(void) {
de = dictGetRandomKey(dict);
thiskey = dictGetKey(de);
/* When policy is volatile-lru we need an additonal lookup
/* When policy is volatile-lru we need an additional lookup
* to locate the real key, as dict is set to db->expires. */
if (server.maxmemory_policy == REDIS_MAXMEMORY_VOLATILE_LRU)
de = dictFind(db->dict, thiskey);
@ -2631,7 +2631,7 @@ int main(int argc, char **argv) {
redisAsciiArt();
if (!server.sentinel_mode) {
/* Things only needed when not runnign in Sentinel mode. */
/* Things only needed when not running in Sentinel mode. */
redisLog(REDIS_WARNING,"Server started, Redis version " REDIS_VERSION);
#ifdef __linux__
linuxOvercommitMemoryWarning();