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
I had searched in the issues and found no similar issues.
Motivation
From rocksdb doc, need handle error when iterating. Like bellow:
for (it->Seek("hello"); it->Valid(); it->Next()) {
// Do something with it->key() and it->value().
}
if (!it->status().ok()) {
// Handle error. it->status().ToString() contains error message.
}
Search before asking
Motivation
From rocksdb doc, need handle error when iterating. Like bellow:
However, the code in kvrocks does not do this check.
For instance:
https://github.com/apache/kvrocks/blob/unstable/src/types/redis_hash.cc#L344
Solution
check iterator status.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: