SLAVEOF command refactored into a proper API.

We now have replicationSetMaster() and replicationUnsetMaster() that can
be called in other contexts (for instance Redis Cluster).
This commit is contained in:
antirez
2013-03-04 13:22:21 +01:00
parent 0c01088b51
commit 7bead003e2
2 changed files with 28 additions and 15 deletions

View File

@ -1096,6 +1096,8 @@ void replicationCron(void);
void replicationHandleMasterDisconnection(void);
void replicationCacheMaster(redisClient *c);
void resizeReplicationBacklog(long long newsize);
void replicationSetMaster(char *ip, int port);
void replicationUnsetMaster(void);
/* Generic persistence functions */
void startLoading(FILE *fp);