mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Fix cluster call reply format readable
This commit is contained in:
parent
46a51cdcdc
commit
dfe81b33fe
@ -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 = cliFormatReplyTTY(reply, "");
|
sds formatted_reply = cliFormatReplyRaw(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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user