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
ff9a5d23
Commit
ff9a5d23
authored
Sep 18, 2019
by
antirez
Browse files
RESP3: Use verbatim in DEBUG HTSTATS / HTSTATS-KEY.
parent
aca5482f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debug.c
View file @
ff9a5d23
...
...
@@ -638,7 +638,8 @@ NULL
dictGetStats
(
buf
,
sizeof
(
buf
),
server
.
db
[
dbid
].
expires
);
stats
=
sdscat
(
stats
,
buf
);
addReplyBulkSds
(
c
,
stats
);
addReplyVerbatim
(
c
,
stats
,
sdslen
(
stats
),
"txt"
);
sdsfree
(
stats
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"htstats-key"
)
&&
c
->
argc
==
3
)
{
robj
*
o
;
dict
*
ht
=
NULL
;
...
...
@@ -665,7 +666,7 @@ NULL
}
else
{
char
buf
[
4096
];
dictGetStats
(
buf
,
sizeof
(
buf
),
ht
);
addReply
BulkCString
(
c
,
buf
);
addReply
Verbatim
(
c
,
buf
,
strlen
(
buf
),
"txt"
);
}
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"change-repl-id"
)
&&
c
->
argc
==
2
)
{
serverLog
(
LL_WARNING
,
"Changing replication IDs after receiving DEBUG change-repl-id"
);
...
...
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