fix compaction split bug and add 3.1 test

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-28 16:01:40 +08:00
parent 5f1b10b03b
commit 37f2c5aff0
9 changed files with 219 additions and 8 deletions

View File

@@ -2,6 +2,18 @@
During the refactor, you might need to change the signature of some functions from `&self` to `self: &Arc<Self>` as necessary.
## MemTable
## Task 1: MemTable, Write-Ahead Log, and Read Path
## WAL
Memtable store timestamp, change to scan, encode ts in wal
## Task 2: Write Path
assign mvcc object, take write lock, increase ts by 1
## Task 3: MVCC Compaction
keep all versions
## Task 4: LSM Iterator
return the latest version