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:
Ligh0x74
2025-05-05 18:08:21 +08:00
committed by GitHub
parent 0fbb32ecca
commit 6fba57ac4d
6 changed files with 95 additions and 19 deletions

View File

@@ -79,6 +79,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)
}