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

@@ -96,6 +96,8 @@ pub struct SsTable {
first_key: KeyBytes,
last_key: KeyBytes,
pub(crate) bloom: Option<Bloom>,
/// The maximum timestamp stored in this SST, implemented in week 3.
max_ts: u64,
}
impl SsTable {
@@ -125,6 +127,7 @@ impl SsTable {
first_key,
last_key,
bloom: None,
max_ts: 0,
}
}
@@ -165,4 +168,8 @@ impl SsTable {
pub fn sst_id(&self) -> usize {
self.id
}
pub fn max_ts(&self) -> u64 {
self.max_ts
}
}