fix: handle the exclude boundary logic of the memory table (#140)
* fix: handle the exclude boundary logic of the memory table * add comments Signed-off-by: Alex Chi <iskyzh@gmail.com> --------- Signed-off-by: Alex Chi <iskyzh@gmail.com> Co-authored-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
@@ -93,6 +93,9 @@ impl MemTable {
|
||||
lower: Bound<&[u8]>,
|
||||
upper: Bound<&[u8]>,
|
||||
) -> MemTableIterator {
|
||||
// This function is only used in week 1 tests, so during the week 3 key-ts refactor, you do
|
||||
// not need to consider the bound exclude/include logic. Simply provide `DEFAULT_TS` as the
|
||||
// timestamp for the key-ts pair.
|
||||
self.scan(lower, upper)
|
||||
}
|
||||
|
||||
|
@@ -127,7 +127,10 @@ where
|
||||
);
|
||||
iter.next().unwrap();
|
||||
}
|
||||
assert!(!iter.is_valid());
|
||||
assert!(
|
||||
!iter.is_valid(),
|
||||
"iterator should not be valid at the end of the check"
|
||||
);
|
||||
}
|
||||
|
||||
pub fn check_iter_result_by_key_and_ts<I>(iter: &mut I, expected: Vec<((Bytes, u64), Bytes)>)
|
||||
|
Reference in New Issue
Block a user