Skip to content

Commit

Permalink
add ut
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Mar 5, 2024
1 parent bddc5bd commit 480cbaa
Show file tree
Hide file tree
Showing 2 changed files with 465 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/storage/src/hummock/compactor/shared_buffer_compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ pub async fn merge_imms_in_memory(
None
};

merged_entries.push(SharedBufferKeyEntry {
key: first_item_key.clone(),
value_offset: 0,
});

// Use first key, max epoch to initialize the tracker to ensure that the check first call to full_key_tracker.observe will succeed
let mut full_key_tracker = FullKeyTracker::<Bytes>::new(FullKey::new_with_gap_epoch(
table_id,
Expand Down
Loading

0 comments on commit 480cbaa

Please sign in to comment.