mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 10:32:14 +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," ");
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user