-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
zadd( 'test', 555, 'nan') crashes redis server #19
Comments
I can't reproduce this issue on the latest redis-py client and latest redis server. I would suggest upgrading to the latest stable redis (1.2.5) and trying again. Also, what version of the redis-py client are you using? |
My bad. Without looking at the python source I swapped the score with value. I was following the command reference from redis which is "zadd key score value", while the function is zadd(key, value, score) I see why redis needs to always put value last (they use the space character as the field delimiter) and why in python zadd puts score last (since it's an added difference) |
For some reason having a value that startswith('nan') crashes my redis server (1.2.2)
I'm not sure if this is a server or client issue, but I was unable to duplicate this crash using redis-cli so I'm leaning towards client.
The text was updated successfully, but these errors were encountered: