From 5c4fcaf3fe448c5575a9911edbcd421c6dbebb54 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 13 Jul 2015 15:30:11 +0200 Subject: [PATCH] Geo: fix command table keys position indexes for three commands. GEOHASH, GEOPOS and GEODIST where declared as commands not accepting keys, so the Redis Cluster redirection did not worked. Close #2671. --- src/redis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/redis.c b/src/redis.c index 02026492..1bcd8375 100644 --- a/src/redis.c +++ b/src/redis.c @@ -285,9 +285,9 @@ struct redisCommand redisCommandTable[] = { {"geoadd",geoaddCommand,-5,"wm",0,NULL,1,1,1,0,0}, {"georadius",georadiusCommand,-6,"r",0,NULL,1,1,1,0,0}, {"georadiusbymember",georadiusByMemberCommand,-5,"r",0,NULL,1,1,1,0,0}, - {"geohash",geohashCommand,-2,"r",0,NULL,0,0,0,0,0}, - {"geopos",geoposCommand,-2,"r",0,NULL,0,0,0,0,0}, - {"geodist",geodistCommand,-4,"r",0,NULL,0,0,0,0,0}, + {"geohash",geohashCommand,-2,"r",0,NULL,1,1,1,0,0}, + {"geopos",geoposCommand,-2,"r",0,NULL,1,1,1,0,0}, + {"geodist",geodistCommand,-4,"r",0,NULL,1,1,1,0,0}, {"pfselftest",pfselftestCommand,1,"r",0,NULL,0,0,0,0,0}, {"pfadd",pfaddCommand,-2,"wmF",0,NULL,1,1,1,0,0}, {"pfcount",pfcountCommand,-2,"r",0,NULL,1,1,1,0,0},