add 3.3 test

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-29 20:43:10 +08:00
parent e947e6d8e0
commit c45d6c8261
8 changed files with 289 additions and 3 deletions

View File

@@ -133,6 +133,7 @@ pub struct SsTable {
first_key: KeyBytes,
last_key: KeyBytes,
pub(crate) bloom: Option<Bloom>,
max_ts: u64,
}
impl SsTable {
#[cfg(test)]
@@ -160,6 +161,7 @@ impl SsTable {
id,
block_cache,
bloom: Some(bloom_filter),
max_ts: 0,
})
}
@@ -179,6 +181,7 @@ impl SsTable {
first_key,
last_key,
bloom: None,
max_ts: 0,
}
}
@@ -240,4 +243,8 @@ impl SsTable {
pub fn sst_id(&self) -> usize {
self.id
}
pub fn max_ts(&self) -> u64 {
self.max_ts
}
}