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