Skip to content

Commit

Permalink
make file_slice_for_range on sstable public (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinity-1686a authored Jan 16, 2023
1 parent 6ca9a47 commit 16b704e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sstable/src/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl<TSSTable: SSTable> Dictionary<TSSTable> {
/// On the rare edge case where a user asks for `(start_key, end_key]`
/// and `start_key` happens to be the last key of a block, we return a
/// slice that is the first block was not necessary.
fn file_slice_for_range(&self, key_range: impl RangeBounds<[u8]>) -> FileSlice {
pub fn file_slice_for_range(&self, key_range: impl RangeBounds<[u8]>) -> FileSlice {
let start_bound: Bound<usize> = match key_range.start_bound() {
Bound::Included(key) | Bound::Excluded(key) => {
let Some(first_block_addr) = self.sstable_index.search_block(key) else {
Expand Down

0 comments on commit 16b704e

Please sign in to comment.