"src/vscode:/vscode.git/clone" did not exist on "040e52c77f870be19792b28c73690dbe8b655b9d"
Commit 0652b05c authored by antirez's avatar antirez
Browse files

RESP3: fix genericHgetallCommand() assert.

parent c2e5be04
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment