mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Slave removal: SLAVEOF -> REPLICAOF. SLAVEOF is now an alias.
This commit is contained in:
parent
14629278e3
commit
ef2c7a5bbb
@ -1997,7 +1997,7 @@ void replicationHandleMasterDisconnection(void) {
|
||||
* the slaves only if we'll have to do a full resync with our master. */
|
||||
}
|
||||
|
||||
void slaveofCommand(client *c) {
|
||||
void replicaofCommand(client *c) {
|
||||
/* SLAVEOF is not allowed in cluster mode as replication is automatically
|
||||
* configured using the current address of the master node. */
|
||||
if (server.cluster_enabled) {
|
||||
|
@ -260,7 +260,8 @@ struct redisCommand redisCommandTable[] = {
|
||||
{"touch",touchCommand,-2,"rF",0,NULL,1,1,1,0,0},
|
||||
{"pttl",pttlCommand,2,"rFR",0,NULL,1,1,1,0,0},
|
||||
{"persist",persistCommand,2,"wF",0,NULL,1,1,1,0,0},
|
||||
{"slaveof",slaveofCommand,3,"ast",0,NULL,0,0,0,0,0},
|
||||
{"slaveof",replicaofCommand,3,"ast",0,NULL,0,0,0,0,0},
|
||||
{"replicaof",replicaofCommand,3,"ast",0,NULL,0,0,0,0,0},
|
||||
{"role",roleCommand,1,"lst",0,NULL,0,0,0,0,0},
|
||||
{"debug",debugCommand,-2,"as",0,NULL,0,0,0,0,0},
|
||||
{"config",configCommand,-2,"last",0,NULL,0,0,0,0,0},
|
||||
|
@ -1998,7 +1998,7 @@ void ttlCommand(client *c);
|
||||
void touchCommand(client *c);
|
||||
void pttlCommand(client *c);
|
||||
void persistCommand(client *c);
|
||||
void slaveofCommand(client *c);
|
||||
void replicaofCommand(client *c);
|
||||
void roleCommand(client *c);
|
||||
void debugCommand(client *c);
|
||||
void msetCommand(client *c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user