diff --git a/src/cluster.c b/src/cluster.c index 97a25b0b3..e3fab02e9 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2815,7 +2815,7 @@ void clusterPropagatePublish(robj *channel, robj *message) { * SLAVE node specific functions * -------------------------------------------------------------------------- */ -/* This function sends a FAILOVE_AUTH_REQUEST message to every node in order to +/* This function sends a FAILOVER_AUTH_REQUEST message to every node in order to * see if there is the quorum for this slave instance to failover its failing * master. * diff --git a/src/networking.c b/src/networking.c index f9a3ff86a..5a465c460 100644 --- a/src/networking.c +++ b/src/networking.c @@ -527,7 +527,7 @@ void trimReplyUnusedTailSpace(client *c) { listNode *ln = listLast(c->reply); clientReplyBlock *tail = ln? listNodeValue(ln): NULL; - /* Note that 'tail' may be NULL even if we have a tail node, becuase when + /* Note that 'tail' may be NULL even if we have a tail node, because when * addReplyDeferredLen() is used */ if (!tail) return; @@ -1426,7 +1426,7 @@ void freeClientAsync(client *c) { pthread_mutex_unlock(&async_free_queue_mutex); } -/* Free the clietns marked as CLOSE_ASAP, return the number of clients +/* Free the clients marked as CLOSE_ASAP, return the number of clients * freed. */ int freeClientsInAsyncFreeQueue(void) { int freed = 0; @@ -3519,7 +3519,7 @@ int handleClientsWithPendingWritesUsingThreads(void) { if (processed == 0) return 0; /* Return ASAP if there are no clients. */ /* If I/O threads are disabled or we have few clients to serve, don't - * use I/O threads, but thejboring synchronous code. */ + * use I/O threads, but the boring synchronous code. */ if (server.io_threads_num == 1 || stopThreadedIOIfNeeded()) { return handleClientsWithPendingWrites(); }