J0HN50N133 opened a new issue, #2248:
URL: https://github.com/apache/kvrocks/issues/2248

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   Since db2860d until now.
   
   ### Minimal reproduce step
   
   
https://github.com/apache/kvrocks/blob/a2380535d5602692f3746783c48ccc7bb05cc58e/src/commands/cmd_string.cc#L307
   
   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.
   
   
https://github.com/apache/kvrocks/blob/a2380535d5602692f3746783c48ccc7bb05cc58e/src/commands/cmd_string.cc#L340
   
   ### What did you expect to see?
   
   If `ttl_` less than `0`, 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?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to