From 4a2c4477c9f1a64a4d8512df9720afecb4b32653 Mon Sep 17 00:00:00 2001 From: hzzb Date: Thu, 25 Mar 2021 10:39:31 +0800 Subject: [PATCH] Fix misleading comment (#8690) REPLICAOF actually specifies which master to attach. --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index 79c6000ad..bba96b93e 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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 "