mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
PFDEBUG ENCODING added.
This commit is contained in:
parent
54f0156e8c
commit
dde8dff73f
@ -1396,6 +1396,13 @@ void pfdebugCommand(redisClient *c) {
|
|||||||
decoded = sdstrim(decoded," ");
|
decoded = sdstrim(decoded," ");
|
||||||
addReplyBulkCBuffer(c,decoded,sdslen(decoded));
|
addReplyBulkCBuffer(c,decoded,sdslen(decoded));
|
||||||
sdsfree(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 {
|
} else {
|
||||||
addReplyErrorFormat(c,"Unknown PFDEBUG subcommand '%s'", cmd);
|
addReplyErrorFormat(c,"Unknown PFDEBUG subcommand '%s'", cmd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user