Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kvdb-rocksdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ impl Database {
// We're not using "Prefix Seek" mode, so the iterator will return
// keys not starting with the given prefix as well,
// see https://github.com/facebook/rocksdb/wiki/Prefix-Seek-API-Changes
optional.into_iter().flat_map(identity).filter(move |(k, _)| k.starts_with(prefix))
optional.into_iter().flat_map(identity).take_while(move |(k, _)| k.starts_with(prefix))
}

/// Close the database
Expand Down