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
14400d07
Unverified
Commit
14400d07
authored
Jan 09, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 09, 2019
Browse files
Merge pull request #5729 from artix75/cluster_manager_fix_cmd
Cluster Manager del-node: use CLUSTER RESET in place of SHUTDOWN
parents
896be4c9
17797660
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
14400d07
...
@@ -5184,9 +5184,10 @@ static int clusterManagerCommandDeleteNode(int argc, char **argv) {
...
@@ -5184,9 +5184,10 @@ static int clusterManagerCommandDeleteNode(int argc, char **argv) {
if
(
!
success
)
return
0
;
if
(
!
success
)
return
0
;
}
}
// Finally shutdown the node
/* Finally send CLUSTER RESET to the node. */
clusterManagerLogInfo
(
">>> SHUTDOWN the node.
\n
"
);
clusterManagerLogInfo
(
">>> Sending CLUSTER RESET SOFT to the "
redisReply
*
r
=
redisCommand
(
node
->
context
,
"SHUTDOWN"
);
"deleted node.
\n
"
);
redisReply
*
r
=
redisCommand
(
node
->
context
,
"CLUSTER RESET %s"
,
"SOFT"
);
success
=
clusterManagerCheckRedisReply
(
node
,
r
,
NULL
);
success
=
clusterManagerCheckRedisReply
(
node
,
r
,
NULL
);
if
(
r
)
freeReplyObject
(
r
);
if
(
r
)
freeReplyObject
(
r
);
return
success
;
return
success
;
...
...
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