Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3281ebb4
Commit
3281ebb4
authored
Oct 01, 2019
by
antirez
Browse files
Fix GEORADIUS replies broken after RESP3 introduction.
This commit fixes #6417.
parent
beebb3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
3281ebb4
...
...
@@ -466,7 +466,7 @@ void georadiusGeneric(client *c, int flags) {
/* Look up the requested zset */
robj
*
zobj
=
NULL
;
if
((
zobj
=
lookupKeyReadOrReply
(
c
,
key
,
shared
.
null
[
c
->
resp
]
))
==
NULL
||
if
((
zobj
=
lookupKeyReadOrReply
(
c
,
key
,
shared
.
emptyarray
))
==
NULL
||
checkType
(
c
,
zobj
,
OBJ_ZSET
))
{
return
;
}
...
...
@@ -566,7 +566,7 @@ void georadiusGeneric(client *c, int flags) {
/* If no matching results, the user gets an empty reply. */
if
(
ga
->
used
==
0
&&
storekey
==
NULL
)
{
addReplyNull
(
c
);
addReplyNull
Array
(
c
);
geoArrayFree
(
ga
);
return
;
}
...
...
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