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
de8d3202
Unverified
Commit
de8d3202
authored
Sep 10, 2020
by
Oran Agra
Committed by
GitHub
Sep 10, 2020
Browse files
Fix RESP3 response for HKEYS/HVALS on non-existing key (#7781)
parent
b2a73c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
de8d3202
...
...
@@ -766,7 +766,9 @@ void genericHgetallCommand(client *c, int flags) {
hashTypeIterator
*
hi
;
int
length
,
count
=
0
;
if
((
o
=
lookupKeyReadOrReply
(
c
,
c
->
argv
[
1
],
shared
.
emptymap
[
c
->
resp
]))
robj
*
emptyResp
=
(
flags
&
OBJ_HASH_KEY
&&
flags
&
OBJ_HASH_VALUE
)
?
shared
.
emptymap
[
c
->
resp
]
:
shared
.
emptyarray
;
if
((
o
=
lookupKeyReadOrReply
(
c
,
c
->
argv
[
1
],
emptyResp
))
==
NULL
||
checkType
(
c
,
o
,
OBJ_HASH
))
return
;
/* We return a map if the user requested keys and values, like in the
...
...
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