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
5380716a
Commit
5380716a
authored
Sep 10, 2020
by
Oran Agra
Browse files
Fix RESP3 response for HKEYS/HVALS on non-existing key
parent
18b30467
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
5380716a
...
@@ -772,7 +772,9 @@ void genericHgetallCommand(client *c, int flags) {
...
@@ -772,7 +772,9 @@ void genericHgetallCommand(client *c, int flags) {
hashTypeIterator
*
hi
;
hashTypeIterator
*
hi
;
int
length
,
count
=
0
;
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
;
==
NULL
||
checkType
(
c
,
o
,
OBJ_HASH
))
return
;
/* We return a map if the user requested keys and values, like in the
/* 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