mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
correct OBJECT ENCODING response for stream type (#7797)
This commit makes stream object returning "stream" as encoding type in OBJECT ENCODING subcommand and DEBUG OBJECT command. Till now, it would return "unknown"
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user