Skip to content

Commit

Permalink
chore(services/rocksdb): fix misuse rocksdb prefix iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorgan committed Aug 26, 2024
1 parent 69ed149 commit 6313c2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/services/rocksdb/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ impl kv::Adapter for Adapter {
for key in it {
let key = key.map_err(parse_rocksdb_error)?;
let key = String::from_utf8_lossy(&key);
// FIXME: it's must a bug that rocksdb returns key that not start with path.
if !key.starts_with(path) {
continue;
break;
}
res.push(key.to_string());
}
Expand Down

0 comments on commit 6313c2e

Please sign in to comment.