replicaofCommand() refactoring: stay into 80 cols.
This commit is contained in:
parent
71d9f4e596
commit
340d03b64b
@ -2053,8 +2053,11 @@ void replicaofCommand(client *c) {
|
|||||||
/* Check if we are already attached to the specified slave */
|
/* Check if we are already attached to the specified slave */
|
||||||
if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr)
|
if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr)
|
||||||
&& server.masterport == port) {
|
&& server.masterport == port) {
|
||||||
serverLog(LL_NOTICE,"REPLICAOF would result into synchronization with the master we are already connected with. No operation performed.");
|
serverLog(LL_NOTICE,"REPLICAOF would result into synchronization "
|
||||||
addReplySds(c,sdsnew("+OK Already connected to specified master\r\n"));
|
"with the master we are already connected "
|
||||||
|
"with. No operation performed.");
|
||||||
|
addReplySds(c,sdsnew("+OK Already connected to specified "
|
||||||
|
"master\r\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* There was no previous master or the user specified a different one,
|
/* There was no previous master or the user specified a different one,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user