Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
88272cf7
"vscode:/vscode.git/clone" did not exist on "a0f5559a861ad8f23395868b1eba3e790c9920a6"
Unverified
Commit
88272cf7
authored
Feb 08, 2021
by
Andy Pan
Committed by
GitHub
Feb 08, 2021
Browse files
Fix typos in comments (#8466)
parent
62b1f320
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
88272cf7
...
@@ -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 FAILOVE
R
_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.
*
*
...
...
src/networking.c
View file @
88272cf7
...
@@ -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, bec
u
ase when
/* Note that 'tail' may be NULL even if we have a tail node, beca
u
se 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 clie
t
ns marked as CLOSE_ASAP, return the number of clients
/* Free the clien
t
s 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 the
j
boring 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
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment