mirror of https://mirror.osredm.com/root/redis.git
Fix error reply of GEOSEARCHSTORE unsupported args (#8865)
When [WITHCOORD] [WITHDIST] [WITHHASH] are used, the error mentioned GEORADIUS command
This commit is contained in:
parent
ebfbb09109
commit
4bfcf4654a
|
@ -651,9 +651,9 @@ void georadiusGeneric(client *c, int srcKeyIndex, int flags) {
|
||||||
|
|
||||||
/* Trap options not compatible with STORE and STOREDIST. */
|
/* Trap options not compatible with STORE and STOREDIST. */
|
||||||
if (storekey && (withdist || withhash || withcoords)) {
|
if (storekey && (withdist || withhash || withcoords)) {
|
||||||
addReplyError(c,
|
addReplyErrorFormat(c,
|
||||||
"STORE option in GEORADIUS is not compatible with "
|
"%s is not compatible with WITHDIST, WITHHASH and WITHCOORD options",
|
||||||
"WITHDIST, WITHHASH and WITHCOORDS options");
|
flags & GEOSEARCHSTORE? "GEOSEARCHSTORE": "STORE option in GEORADIUS");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue