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
aca5482f
Commit
aca5482f
authored
Sep 18, 2019
by
antirez
Browse files
RESP3: Use verbatim in INFO output.
parent
68519b70
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
aca5482f
...
@@ -4391,7 +4391,9 @@ void infoCommand(client *c) {
...
@@ -4391,7 +4391,9 @@ void infoCommand(client *c) {
addReply
(
c
,
shared
.
syntaxerr
);
addReply
(
c
,
shared
.
syntaxerr
);
return
;
return
;
}
}
addReplyBulkSds(c, genRedisInfoString(section));
sds
info
=
genRedisInfoString
(
section
);
addReplyVerbatim
(
c
,
info
,
sdslen
(
info
),
"txt"
);
sdsfree
(
info
);
}
}
void
monitorCommand
(
client
*
c
)
{
void
monitorCommand
(
client
*
c
)
{
...
...
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