Skip to content

Commit

Permalink
correct OBJECT ENCODING response for stream type (redis#7797)
Browse files Browse the repository at this point in the history
This commit makes stream object returning "stream" as encoding type in OBJECT ENCODING subcommand and DEBUG OBJECT command.

Till now, it would return "unknown"
  • Loading branch information
hwware committed Sep 15, 2020
1 parent 98c8ac0 commit 6ff741b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ char *strEncoding(int encoding) {
case OBJ_ENCODING_INTSET: return "intset";
case OBJ_ENCODING_SKIPLIST: return "skiplist";
case OBJ_ENCODING_EMBSTR: return "embstr";
case OBJ_ENCODING_STREAM: return "stream";
default: return "unknown";
}
}
Expand Down

0 comments on commit 6ff741b

Please sign in to comment.