-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GEOSEARCH/GEOSEARCHSTORE FROMMEMBER against non existing src key reply #1625
Conversation
…reply The new GEOSEARCH and GEOSEARCHSTORE commands was added in apache#1533. When typing FROMMEMBER option against non-existing src key, an IsNotFound error is return and resulting in the following inconsistency: ``` 127.0.0.1:6666> GEOSEARCH src FROMMEMBER Shenzhen BYBOX 88 88 m (error) ERR NotFound: 127.0.0.1:6666> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen BYBOX 88 88 m (error) ERR NotFound: 127.0.0.1:6379> GEOSEARCH src FROMMEMBER Shenzhen BYBOX 88 88 m (empty array) 127.0.0.1:6379> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen BYBOX 88 88 m (integer) 0 ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@enjoy-binbin Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that geo not handle the return value of ZSet::Del(user_key)
, would this also need to be handled?
i haven't looked at the store section below yet, just a quick look, looks like it doesn't need it. |
…reply (apache#1625) The new GEOSEARCH and GEOSEARCHSTORE commands were added in apache#1533. When typing the FROMMEMBER option against non-existing src key, an IsNotFound error is returned and resulting in the following inconsistency: ``` 127.0.0.1:6666> GEOSEARCH src FROMMEMBER Shenzhen BYBOX 88 88 m (error) ERR NotFound: 127.0.0.1:6666> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen BYBOX 88 88 m (error) ERR NotFound: 127.0.0.1:6379> GEOSEARCH src FROMMEMBER Shenzhen BYBOX 88 88 m (empty array) 127.0.0.1:6379> GEOSEARCHSTORE dst src FROMMEMBER Shenzhen BYBOX 88 88 m (integer) 0 ```
The new GEOSEARCH and GEOSEARCHSTORE commands was added
in #1533. When typing FROMMEMBER option against non-existing
src key, an IsNotFound error is return and resulting in the
following inconsistency: