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
a950a843
Commit
a950a843
authored
Feb 29, 2012
by
antirez
Browse files
Ping the slave using the standard protocol instead of the inline one.
parent
c1db214e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
a950a843
...
@@ -596,7 +596,7 @@ void replicationCron(void) {
...
@@ -596,7 +596,7 @@ void replicationCron(void) {
if
(
slave
->
replstate
==
REDIS_REPL_SEND_BULK
)
continue
;
if
(
slave
->
replstate
==
REDIS_REPL_SEND_BULK
)
continue
;
if
(
slave
->
replstate
==
REDIS_REPL_ONLINE
)
{
if
(
slave
->
replstate
==
REDIS_REPL_ONLINE
)
{
/* If the slave is online send a normal ping */
/* If the slave is online send a normal ping */
addReplySds
(
slave
,
sdsnew
(
"PING
\r\n
"
));
addReplySds
(
slave
,
sdsnew
(
"
*1
\r\n
$4
\r\n
PING
\r\n
"
));
}
else
{
}
else
{
/* Otherwise we are in the pre-synchronization stage.
/* Otherwise we are in the pre-synchronization stage.
* Just a newline will do the work of refreshing the
* Just a newline will do the work of refreshing the
...
...
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