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
3c2800e3
Commit
3c2800e3
authored
Apr 17, 2019
by
chendianqiang
Committed by
antirez
May 15, 2019
Browse files
stop ping when client pause
parent
7ac7ffd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
3c2800e3
...
...
@@ -2591,7 +2591,7 @@ void replicationCron(void) {
/* First, send PING according to ping_slave_period. */
if
((
replication_cron_loops
%
server
.
repl_ping_slave_period
)
==
0
&&
listLength
(
server
.
slaves
))
listLength
(
server
.
slaves
)
&&
!
clientsArePaused
()
)
{
ping_argv
[
0
]
=
createStringObject
(
"PING"
,
4
);
replicationFeedSlaves
(
server
.
slaves
,
server
.
slaveseldb
,
...
...
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