Skip to content

Fix GEORADIUS negative unit#3194

Closed
tidwall wants to merge 1 commit intoredis:unstablefrom
tidwall:fix-georadius-negative-unit
Closed

Fix GEORADIUS negative unit#3194
tidwall wants to merge 1 commit intoredis:unstablefrom
tidwall:fix-georadius-negative-unit

Conversation

@tidwall
Copy link

@tidwall tidwall commented May 2, 2016

Requests will hang on GEORADIUS when there is a negative unit specified.

reproduce:

geoadd fleet -115 33 truck1   # add a truck
georadius fleet -115 33 -1 m  # hang

antirez added a commit that referenced this pull request May 4, 2016
@antirez antirez closed this in 2c22f59 May 4, 2016
@antirez
Copy link
Contributor

antirez commented May 4, 2016

Thanks! Fixed with a different commit because the function claims to reply on errors, so the error should be generated by the called function, not by the caller (like it happens if the double cannot be parsed).

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants