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
75c181ee
Unverified
Commit
75c181ee
authored
Dec 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 07, 2018
Browse files
Merge pull request #5664 from yongman/fix-rediscli-output-format
Fix cluster call reply format readable
parents
430a987f
dfe81b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
75c181ee
...
@@ -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