mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
fix typo in comments (redis.c, networking.c)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user