Fix GEORADIUS replies broken after RESP3 introduction.
This commit fixes #6417.
This commit is contained in:
parent
1b2c3ffb1f
commit
0338f6b5c3
@ -466,7 +466,7 @@ void georadiusGeneric(client *c, int flags) {
|
|||||||
|
|
||||||
/* Look up the requested zset */
|
/* Look up the requested zset */
|
||||||
robj *zobj = NULL;
|
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)) {
|
checkType(c, zobj, OBJ_ZSET)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -566,7 +566,7 @@ void georadiusGeneric(client *c, int flags) {
|
|||||||
|
|
||||||
/* If no matching results, the user gets an empty reply. */
|
/* If no matching results, the user gets an empty reply. */
|
||||||
if (ga->used == 0 && storekey == NULL) {
|
if (ga->used == 0 && storekey == NULL) {
|
||||||
addReplyNull(c);
|
addReplyNullArray(c);
|
||||||
geoArrayFree(ga);
|
geoArrayFree(ga);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user