Unverified Commit 88272cf7 authored by Andy Pan's avatar Andy Pan Committed by GitHub
Browse files

Fix typos in comments (#8466)

parent 62b1f320
...@@ -2815,7 +2815,7 @@ void clusterPropagatePublish(robj *channel, robj *message) { ...@@ -2815,7 +2815,7 @@ void clusterPropagatePublish(robj *channel, robj *message) {
* SLAVE node specific functions * 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 * see if there is the quorum for this slave instance to failover its failing
* master. * master.
* *
......
...@@ -527,7 +527,7 @@ void trimReplyUnusedTailSpace(client *c) { ...@@ -527,7 +527,7 @@ void trimReplyUnusedTailSpace(client *c) {
listNode *ln = listLast(c->reply); listNode *ln = listLast(c->reply);
clientReplyBlock *tail = ln? listNodeValue(ln): NULL; 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 */ * addReplyDeferredLen() is used */
if (!tail) return; if (!tail) return;
...@@ -1426,7 +1426,7 @@ void freeClientAsync(client *c) { ...@@ -1426,7 +1426,7 @@ void freeClientAsync(client *c) {
pthread_mutex_unlock(&async_free_queue_mutex); 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. */ * freed. */
int freeClientsInAsyncFreeQueue(void) { int freeClientsInAsyncFreeQueue(void) {
int freed = 0; int freed = 0;
...@@ -3519,7 +3519,7 @@ int handleClientsWithPendingWritesUsingThreads(void) { ...@@ -3519,7 +3519,7 @@ int handleClientsWithPendingWritesUsingThreads(void) {
if (processed == 0) return 0; /* Return ASAP if there are no clients. */ 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 /* 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()) { if (server.io_threads_num == 1 || stopThreadedIOIfNeeded()) {
return handleClientsWithPendingWrites(); return handleClientsWithPendingWrites();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment