RESP3: fix genericHgetallCommand() assert.

This commit is contained in:
antirez committed 2019-01-09 17:00:29 +01:00
1 parent f7d9fd0059
commit bb98fa90bb
1 file changed
+3
+3
View File
@@ -793,6 +793,9 @@ void genericHgetallCommand(client *c, int flags) {
}
hashTypeReleaseIterator(hi);
/* Make sure we returned the right number of elements. */
if (flags & OBJ_HASH_KEY && flags & OBJ_HASH_VALUE) count /= 2;
serverAssert(count == length);
}