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
41295e55
Commit
41295e55
authored
Dec 04, 2018
by
yongman
Committed by
antirez
Dec 11, 2018
Browse files
Fix cluster call reply format readable
parent
0ed3970f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
41295e55
...
@@ -5404,7 +5404,7 @@ static int clusterManagerCommandCall(int argc, char **argv) {
...
@@ -5404,7 +5404,7 @@ static int clusterManagerCommandCall(int argc, char **argv) {
if
(
status
!=
REDIS_OK
||
reply
==
NULL
)
if
(
status
!=
REDIS_OK
||
reply
==
NULL
)
printf
(
"%s:%d: Failed!
\n
"
,
n
->
ip
,
n
->
port
);
printf
(
"%s:%d: Failed!
\n
"
,
n
->
ip
,
n
->
port
);
else
{
else
{
sds
formatted_reply
=
cliFormatReply
TTY
(
reply
,
""
);
sds
formatted_reply
=
cliFormatReply
Raw
(
reply
);
printf
(
"%s:%d: %s
\n
"
,
n
->
ip
,
n
->
port
,
(
char
*
)
formatted_reply
);
printf
(
"%s:%d: %s
\n
"
,
n
->
ip
,
n
->
port
,
(
char
*
)
formatted_reply
);
sdsfree
(
formatted_reply
);
sdsfree
(
formatted_reply
);
}
}
...
...
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