1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-18 16:40:50 +00:00

RESP3: fix genericHgetallCommand() assert.

This commit is contained in:
antirez 2018-12-03 18:08:00 +01:00
parent c2e5be0421
commit 0652b05caf

@ -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);
}