summaryrefslogtreecommitdiff
path: root/src/db.c
diff options
context:
space:
mode:
authorLeibale Eidelman <me@leibale.com>2023-05-09 07:24:37 -0400
committerGitHub <noreply@github.com>2023-05-09 14:24:37 +0300
commite04ebdb8d3f558b27ecdc6555a33ed91966371cd (patch)
treeb165f7e927d2e9a0213e88ad1a59b8dfdf1582fc /src/db.c
parent6ab2174d37185cd20280ff3e0f7f287ebefd4c92 (diff)
downloadredis-e04ebdb8d3f558b27ecdc6555a33ed91966371cd.tar.gz
fix `GEORADIUS[BYMEMBER]` `STORE` & `STOREDIST` args spec (#12151)
in GEO commands, `STORE` and `STOREDIST` are mutually exclusive. use `oneof` block to contain them
Diffstat (limited to 'src/db.c')
-rw-r--r--src/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index de7c601b0..38881a7f8 100644
--- a/src/db.c
+++ b/src/db.c
@@ -2315,7 +2315,7 @@ int migrateGetKeys(struct redisCommand *cmd, robj **argv, int argc, getKeysResul
/* Helper function to extract keys from following commands:
* GEORADIUS key x y radius unit [WITHDIST] [WITHHASH] [WITHCOORD] [ASC|DESC]
- * [COUNT count] [STORE key] [STOREDIST key]
+ * [COUNT count] [STORE key|STOREDIST key]
* GEORADIUSBYMEMBER key member radius unit ... options ...
*
* This command has a fully defined keyspec, so returning flags isn't needed. */