1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-17 17:41:56 +00:00

PFDEBUG ENCODING added.

This commit is contained in:
antirez
2014-04-14 19:35:00 +02:00
parent db929041b5
commit 66f67208d3

@@ -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);
}