Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e951386265 | ||
|
|
715de15c3a | ||
|
|
309dcdfd55 | ||
|
|
cac378a1e6 | ||
|
|
d7112df465 | ||
|
|
ed021c88b9 | ||
|
|
5d360ed401 | ||
|
|
8164c93d5a | ||
|
|
82621702cf |
No files matched your search
@@ -2263,6 +2263,13 @@ struct redisMaster *replicationAddMaster(char *ip, int port) {
|
||||
return mi;
|
||||
}
|
||||
|
||||
void freeMasterInfo(redisMaster *mi)
|
||||
{
|
||||
zfree(mi->masterauth);
|
||||
zfree(mi->masteruser);
|
||||
zfree(mi);
|
||||
}
|
||||
|
||||
/* Cancel replication, setting the instance as a master itself. */
|
||||
void replicationUnsetMaster(redisMaster *mi) {
|
||||
serverAssert(mi->masterhost != NULL);
|
||||
@@ -2305,6 +2312,7 @@ void replicationUnsetMaster(redisMaster *mi) {
|
||||
listNode *ln = listSearchKey(server.masters, mi);
|
||||
serverAssert(ln != nullptr);
|
||||
listDelNode(server.masters, ln);
|
||||
freeMasterInfo(mi);
|
||||
}
|
||||
|
||||
/* This function is called when the slave lose the connection with the
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
#define REDIS_VERSION "0.9.2"
|
||||
#define REDIS_VERSION "0.9.4"
|
||||
Reference in new issue
Block a user