From 59ae3fa1346bebad243fe67ccaf0d4c8681c76ed Mon Sep 17 00:00:00 2001 From: Hu# Date: Thu, 15 Feb 2024 21:59:26 +0800 Subject: [PATCH] add hint (#46) Signed-off-by: husharp --- mini-lsm-book/src/week2-05-manifest.md | 7 +++++++ mini-lsm-book/src/week2-06-wal.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/mini-lsm-book/src/week2-05-manifest.md b/mini-lsm-book/src/week2-05-manifest.md index 96c18cd..2361ed0 100644 --- a/mini-lsm-book/src/week2-05-manifest.md +++ b/mini-lsm-book/src/week2-05-manifest.md @@ -7,6 +7,13 @@ In this chapter, you will: * Implement encoding and decoding of the manifest file. * 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 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. diff --git a/mini-lsm-book/src/week2-06-wal.md b/mini-lsm-book/src/week2-06-wal.md index fb4ebc9..b9500f9 100644 --- a/mini-lsm-book/src/week2-06-wal.md +++ b/mini-lsm-book/src/week2-06-wal.md @@ -7,6 +7,13 @@ In this chapter, you will: * Implement encoding and decoding of the write-ahead log file. * 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 In this task, you will need to modify: