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
66f67208
Commit
66f67208
authored
Apr 14, 2014
by
antirez
Browse files
PFDEBUG ENCODING added.
parent
db929041
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
66f67208
...
...
@@ -1396,6 +1396,13 @@ void pfdebugCommand(redisClient *c) {
decoded
=
sdstrim
(
decoded
,
" "
);
addReplyBulkCBuffer
(
c
,
decoded
,
sdslen
(
decoded
));
sdsfree
(
decoded
);
}
/* PFDEBUG ENCODING <key> */
else
if
(
!
strcasecmp
(
cmd
,
"encoding"
))
{
char
*
encodingstr
[
2
]
=
{
"dense"
,
"sparse"
};
if
(
c
->
argc
!=
3
)
goto
arityerr
;
addReplyStatus
(
c
,
encodingstr
[
hdr
->
encoding
]);
}
else
{
addReplyErrorFormat
(
c
,
"Unknown PFDEBUG subcommand '%s'"
,
cmd
);
}
...
...
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