Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0652b05c
Commit
0652b05c
authored
Dec 03, 2018
by
antirez
Browse files
RESP3: fix genericHgetallCommand() assert.
parent
c2e5be04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
0652b05c
...
@@ -793,6 +793,9 @@ void genericHgetallCommand(client *c, int flags) {
...
@@ -793,6 +793,9 @@ void genericHgetallCommand(client *c, int flags) {
}
}
hashTypeReleaseIterator
(
hi
);
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
);
serverAssert
(
count
==
length
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment