@@ -7,6 +7,13 @@ In this chapter, you will:
|
|||||||
* Implement encoding and decoding of the manifest file.
|
* Implement encoding and decoding of the manifest file.
|
||||||
* Recover from the manifest when the system restarts.
|
* Recover from the manifest when the system restarts.
|
||||||
|
|
||||||
|
To copy the test cases into the starter code and run them,
|
||||||
|
|
||||||
|
```
|
||||||
|
cargo x copy-test --week 2 --day 5
|
||||||
|
cargo x scheck
|
||||||
|
```
|
||||||
|
|
||||||
## Task 1: Manifest Encoding
|
## Task 1: Manifest Encoding
|
||||||
|
|
||||||
The system uses a manifest file to record all operations happened in the engine. Currently, there are only two types of them: compaction and SST flush. When the engine restarts, it will read the manifest file, reconstruct the state, and load the SST files on the disk.
|
The system uses a manifest file to record all operations happened in the engine. Currently, there are only two types of them: compaction and SST flush. When the engine restarts, it will read the manifest file, reconstruct the state, and load the SST files on the disk.
|
||||||
|
|||||||
@@ -7,6 +7,13 @@ In this chapter, you will:
|
|||||||
* Implement encoding and decoding of the write-ahead log file.
|
* Implement encoding and decoding of the write-ahead log file.
|
||||||
* Recover memtables from the WALs when the system restarts.
|
* Recover memtables from the WALs when the system restarts.
|
||||||
|
|
||||||
|
To copy the test cases into the starter code and run them,
|
||||||
|
|
||||||
|
```
|
||||||
|
cargo x copy-test --week 2 --day 6
|
||||||
|
cargo x scheck
|
||||||
|
```
|
||||||
|
|
||||||
## Task 1: WAL Encoding
|
## Task 1: WAL Encoding
|
||||||
|
|
||||||
In this task, you will need to modify:
|
In this task, you will need to modify:
|
||||||
|
|||||||
Reference in New Issue
Block a user