Fix misleading comment (#8690)
REPLICAOF actually specifies which master to attach.
This commit is contained in:
parent
98d2e0017d
commit
4a2c4477c9
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user