From 6ff741b5cf4d1cf7e23610aa9eef7ed485bd3113 Mon Sep 17 00:00:00 2001 From: Wen Hui Date: Tue, 15 Sep 2020 01:58:21 -0400 Subject: [PATCH] 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" --- src/object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/object.c b/src/object.c index 732241e84..1380fffa5 100644 --- a/src/object.c +++ b/src/object.c @@ -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"; } }