Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEO FROMMEMBER returns error when member does not exist
Redis will return a specific error if the member does not exist, but Kvrocks currently handles it as if the src key does not exist: ``` 127.0.0.1:6666> geoadd src 10 10 Shenzhen (integer) 1 127.0.0.1:6666> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen_2 BYBOX 88 88 m (integer) 0 127.0.0.1:6379> GEOADD src 10 10 Shenzhen (integer) 1 127.0.0.1:6379> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen_2 BYBOX 88 88 m (error) ERR could not decode requested zset member ``` Now we will return an error, the error message is the same as Redis: could not decode requested zset member ``` 127.0.0.1:6666> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen_2 BYBOX 88 88 m (error) ERR Invalid argument: could not decode requested zset member 127.0.0.1:6666> GEORADIUSBYMEMBER src Shenzhen_2 20 M STORE dst (error) ERR Invalid argument: could not decode requested zset member ```
- Loading branch information