summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-03-18 11:34:40 +0100
committerantirez <antirez@gmail.com>2019-03-18 11:34:40 +0100
commit14b17c3615108fdbca5e7fe4d2c3f0e8b7454521 (patch)
treeda4a4cbaee667b4de73fb635fc08c43f2522977d
parentb78ac354f41e370a4dc21ac01981cb0ccd0a1b7d (diff)
downloadredis-14b17c3615108fdbca5e7fe4d2c3f0e8b7454521.tar.gz
replicaofCommand() refactoring: stay into 80 cols.
-rw-r--r--src/replication.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/replication.c b/src/replication.c
index 3c30999af..f2adc7995 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -2053,8 +2053,11 @@ void replicaofCommand(client *c) {
/* Check if we are already attached to the specified slave */
if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr)
&& server.masterport == port) {
- serverLog(LL_NOTICE,"REPLICAOF would result into synchronization with the master we are already connected with. No operation performed.");
- addReplySds(c,sdsnew("+OK Already connected to specified master\r\n"));
+ serverLog(LL_NOTICE,"REPLICAOF would result into synchronization "
+ "with the master we are already connected "
+ "with. No operation performed.");
+ addReplySds(c,sdsnew("+OK Already connected to specified "
+ "master\r\n"));
return;
}
/* There was no previous master or the user specified a different one,