Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
efa51f16
Commit
efa51f16
authored
Apr 10, 2018
by
artix
Browse files
Cluster Manager: added clusterManagerCheckCluster to import command
parent
1f548359
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
efa51f16
...
@@ -4698,6 +4698,7 @@ static int clusterManagerCommandImport(int argc, char **argv) {
...
@@ -4698,6 +4698,7 @@ static int clusterManagerCommandImport(int argc, char **argv) {
clusterManagerNode
*
refnode
=
clusterManagerNewNode
(
ip
,
port
);
clusterManagerNode
*
refnode
=
clusterManagerNewNode
(
ip
,
port
);
if
(
!
clusterManagerLoadInfoFromNode
(
refnode
,
0
))
return
0
;
if
(
!
clusterManagerLoadInfoFromNode
(
refnode
,
0
))
return
0
;
if
(
!
clusterManagerCheckCluster
(
0
))
return
0
;
char
*
reply_err
=
NULL
;
char
*
reply_err
=
NULL
;
redisReply
*
src_reply
=
NULL
;
redisReply
*
src_reply
=
NULL
;
// Connect to the source node.
// Connect to the source node.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment