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"

(cherry picked from commit 6ff741b5cf)
This commit is contained in:
Wen Hui 2020-09-15 01:58:21 -04:00 committed by Oran Agra
parent 405f041e90
commit 7601ed344c

View File

@ -739,6 +739,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";
}
}