Cluster Manager: added clusterManagerCheckCluster to import command

This commit is contained in:
artix 2018-04-10 16:53:24 +02:00
parent eaaa3202e6
commit 81ab5a3b28

View File

@ -4698,6 +4698,7 @@ static int clusterManagerCommandImport(int argc, char **argv) {
clusterManagerNode *refnode = clusterManagerNewNode(ip, port);
if (!clusterManagerLoadInfoFromNode(refnode, 0)) return 0;
if (!clusterManagerCheckCluster(0)) return 0;
char *reply_err = NULL;
redisReply *src_reply = NULL;
// Connect to the source node.