We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ttl_
CommandSet
Since db2860d until now.
kvrocks/src/commands/cmd_string.cc
Line 307 in a238053
Here determine whether ttl_ less than 0, if so, doing deletion. However, the type of ttl_ if uint64_t which is impossible to less than 0.
0
uint64_t
Line 340 in a238053
If ttl_ less than 0, doing deletion.
The condition will never be true, thus, deletion will never be done.
No response
The text was updated successfully, but these errors were encountered:
@J0HN50N133 Thanks for your report.
You're right, would you submit a PR to fix this?
Sorry, something went wrong.
I could fix it. Although the behaviour here is correct (because of implicit cast), it's disturbing.
int64_t
commands
Successfully merging a pull request may close this issue.
Search before asking
Version
Since db2860d until now.
Minimal reproduce step
kvrocks/src/commands/cmd_string.cc
Line 307 in a238053
Here determine whether
ttl_
less than0
, if so, doing deletion. However, the type ofttl_
ifuint64_t
which is impossible to less than 0.kvrocks/src/commands/cmd_string.cc
Line 340 in a238053
What did you expect to see?
If
ttl_
less than0
, doing deletion.What did you see instead?
The condition will never be true, thus, deletion will never be done.
Anything Else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: