mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Cluster Manager: fixed master_id check in clusterManagerNodeLoadInfo
This commit is contained in:
parent
d49d023828
commit
d168b245b3
@ -3088,7 +3088,7 @@ static int clusterManagerNodeLoadInfo(clusterManagerNode *node, int opts,
|
||||
currentNode->flags |= CLUSTER_MANAGER_FLAG_FAIL;
|
||||
else if (strcmp(flag, "slave") == 0) {
|
||||
currentNode->flags |= CLUSTER_MANAGER_FLAG_SLAVE;
|
||||
if (master_id == 0) {
|
||||
if (master_id != NULL) {
|
||||
if (currentNode->replicate) sdsfree(currentNode->replicate);
|
||||
currentNode->replicate = sdsnew(master_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user