Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed May 16, 2024
1 parent ff0db59 commit 7c3702a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compaction/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ fn merge_segments(
block_cache: opts.config.block_cache.clone(),

// TODO: if L0, L1, preload block index (non-partitioned)
#[allow(clippy::needless_borrows_for_generic_args)]
block_index: BlockIndex::from_file(
segment_file_path,
&segment_file_path,
trailer.offsets.tli_ptr,
(opts.tree_id, segment_id).into(),
opts.config.descriptor_table.clone(),
Expand All @@ -233,6 +234,9 @@ fn merge_segments(

#[cfg(feature = "bloom")]
bloom_filter: {
use crate::serde::Deserializable;
use std::io::Seek;

assert!(
trailer.offsets.bloom_ptr > 0,
"can not find bloom filter block"
Expand Down
3 changes: 3 additions & 0 deletions src/flush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ pub fn flush_to_segment(opts: Options) -> crate::Result<Segment> {
// TODO: as Bloom method
#[cfg(feature = "bloom")]
bloom_filter: {
use crate::serde::Deserializable;
use std::io::Seek;

assert!(
trailer.offsets.bloom_ptr > 0,
"can not find bloom filter block"
Expand Down
3 changes: 3 additions & 0 deletions src/segment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ impl Segment {
// TODO: as Bloom method
#[cfg(feature = "bloom")]
bloom_filter: {
use crate::serde::Deserializable;
use std::io::Seek;

assert!(
trailer.offsets.bloom_ptr > 0,
"can not find bloom filter block"
Expand Down

0 comments on commit 7c3702a

Please sign in to comment.