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:
Wen Hui 2020-09-15 01:58:21 -04:00 committed by GitHub
parent 98c8ac0d70
commit 6ff741b5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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