Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dcffca0a
Commit
dcffca0a
authored
Mar 16, 2018
by
Wander Hillen
Browse files
Fix typos, add some periods
parent
d8207d09
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
dcffca0a
...
...
@@ -255,7 +255,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
while
((
ln
=
listNext
(
&
li
)))
{
client
*
slave
=
ln
->
value
;
/* Don't feed slaves that are still waiting for BGSAVE to start */
/* Don't feed slaves that are still waiting for BGSAVE to start
.
*/
if
(
slave
->
replstate
==
SLAVE_STATE_WAIT_BGSAVE_START
)
continue
;
/* Feed slaves that are waiting for the initial SYNC (so these commands
...
...
@@ -294,7 +294,7 @@ void replicationFeedSlavesFromMasterStream(list *slaves, char *buf, size_t bufle
while
((
ln
=
listNext
(
&
li
)))
{
client
*
slave
=
ln
->
value
;
/* Don't feed slaves that are still waiting for BGSAVE to start */
/* Don't feed slaves that are still waiting for BGSAVE to start
.
*/
if
(
slave
->
replstate
==
SLAVE_STATE_WAIT_BGSAVE_START
)
continue
;
addReplyString
(
slave
,
buf
,
buflen
);
}
...
...
@@ -584,7 +584,7 @@ int startBgsaveForReplication(int mincapa) {
}
/* If we failed to BGSAVE, remove the slaves waiting for a full
* resyncho
ri
nization from the list of s
a
lves, inform them with
* resynch
r
onization from the list of sl
a
ves, inform them with
* an error about what happened, close the connection ASAP. */
if
(
retval
==
C_ERR
)
{
serverLog
(
LL_WARNING
,
"BGSAVE for replication failed"
);
...
...
@@ -604,7 +604,7 @@ int startBgsaveForReplication(int mincapa) {
}
/* If the target is socket, rdbSaveToSlavesSockets() already setup
* the s
a
lves for a full resync. Otherwise for disk target do it now.*/
* the sl
a
ves for a full resync. Otherwise for disk target do it now.*/
if
(
!
socket_target
)
{
listRewind
(
server
.
slaves
,
&
li
);
while
((
ln
=
listNext
(
&
li
)))
{
...
...
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