You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, we need to regard it as a non-existing key if all subkeys are deleted in a list(same as the hash/set/zset). But some types allow the empty subkey list like stream/bloomfilter. Can refer: storage/redis_db.cc#L62
The better way is to use GetMetadata to replace the decode function in redis_string.
Search before asking
Version
unstable
Minimal reproduce step
Using
GET
to get json type key will not return error.I writed below test case.
What did you expect to see?
test failed
What did you see instead?
test Passed
Anything Else?
Maybe is this line problem.https://github.com/apache/kvrocks/blob/unstable/src/types/redis_string.cc#L86
Why do we need to check
metadata.size > 0
?Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: