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
4a2c4477
Unverified
Commit
4a2c4477
authored
Mar 25, 2021
by
hzzb
Committed by
GitHub
Mar 24, 2021
Browse files
Fix misleading comment (#8690)
REPLICAOF actually specifies which master to attach.
parent
98d2e001
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
4a2c4477
...
...
@@ -2773,7 +2773,7 @@ void replicaofCommand(client *c) {
if
((
getLongFromObjectOrReply
(
c
,
c
->
argv
[
2
],
&
port
,
NULL
)
!=
C_OK
))
return
;
/* Check if we are already attached to the specified
slave
*/
/* Check if we are already attached to the specified
master
*/
if
(
server
.
masterhost
&&
!
strcasecmp
(
server
.
masterhost
,
c
->
argv
[
1
]
->
ptr
)
&&
server
.
masterport
==
port
)
{
serverLog
(
LL_NOTICE
,
"REPLICAOF would result into synchronization "
...
...
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