Skip to content

Commit

Permalink
chore(storage): add debug_assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k committed Mar 14, 2023
1 parent cd710df commit dffc157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/src/hummock/sstable/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ impl BlockBuilder {
///
/// Panic if key is not added in ASCEND order.
pub fn add(&mut self, full_key: FullKey<&[u8]>, value: &[u8]) {
#[cfg(debug_assertions)]
self.debug_valid();

let mut key: BytesMut = Default::default();
Expand Down

0 comments on commit dffc157

Please sign in to comment.