Skip to content

Commit 14b17c3

Browse files
committed
replicaofCommand() refactoring: stay into 80 cols.
1 parent b78ac35 commit 14b17c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/replication.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -2053,8 +2053,11 @@ void replicaofCommand(client *c) {
20532053
/* Check if we are already attached to the specified slave */
20542054
if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr)
20552055
&& server.masterport == port) {
2056-
serverLog(LL_NOTICE,"REPLICAOF would result into synchronization with the master we are already connected with. No operation performed.");
2057-
addReplySds(c,sdsnew("+OK Already connected to specified master\r\n"));
2056+
serverLog(LL_NOTICE,"REPLICAOF would result into synchronization "
2057+
"with the master we are already connected "
2058+
"with. No operation performed.");
2059+
addReplySds(c,sdsnew("+OK Already connected to specified "
2060+
"master\r\n"));
20582061
return;
20592062
}
20602063
/* There was no previous master or the user specified a different one,

0 commit comments

Comments
 (0)