RESP3: fix genericHgetallCommand() assert.
This commit is contained in:
1 parent
f7d9fd0059
commit
bb98fa90bb
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user