finish 3.5

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-30 12:39:36 +08:00
parent 4ad97f716c
commit a17f34b7d9
6 changed files with 61 additions and 49 deletions

View File

@@ -46,6 +46,8 @@ For now, we only use two types of the manifest records: SST flush and compaction
To sync the directory, you may implement the `sync_dir` function, where you can use `File::open(dir).sync_all()?` to sync it. On Linux, directory is a file that contains the list of files in the directory. By doing fsync on the directory, you will ensure that the newly-written (or removed) files can be visible to the user if the power goes off.
Remember to write a compaction manifest record for both the background compaction trigger (leveled/simple/universal) and when the user requests to do a force compaction.
## Task 3: Flush on Close
In this task, you will need to modify: