mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
RESP3: fix genericHgetallCommand() assert.
This commit is contained in:
@@ -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