Skip to content

Commit ebb8a01

Browse files
authored
docs: modify error path prompt (#135)
1 parent 9ad00a8 commit ebb8a01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mini-lsm-book/src/week3-05-txn-occ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cargo x scheck
1818
In this task, you will need to modify:
1919

2020
```
21-
src/txn.rs
21+
src/mvcc/txn.rs
2222
```
2323

2424
You can now implement `put` and `delete` by inserting the corresponding key/value to the `local_storage`, which is a skiplist memtable without key timestamp. Note that for deletes, you will still need to implement it as inserting an empty value, instead of removing a value from the skiplist.
@@ -28,7 +28,7 @@ You can now implement `put` and `delete` by inserting the corresponding key/valu
2828
In this task, you will need to modify:
2929

3030
```
31-
src/txn.rs
31+
src/mvcc/txn.rs
3232
```
3333

3434
For `get`, you should first probe the local storage. If a value is found, return the value or `None` depending on whether it is a deletion marker. For `scan`, you will need to implement a `TxnLocalIterator` for the skiplist as in chapter 1.1 when you implement the iterator for a memtable without key timestamp. You will need to store a `TwoMergeIterator<TxnLocalIterator, FusedIterator<LsmIterator>>` in the `TxnIterator`. And, lastly, given that the `TwoMergeIterator` will retain the deletion markers in the child iterators, you will need to modify your `TxnIterator` implementation to correctly handle deletions.
@@ -38,7 +38,7 @@ For `get`, you should first probe the local storage. If a value is found, return
3838
In this task, you will need to modify:
3939

4040
```
41-
src/txn.rs
41+
src/mvcc/txn.rs
4242
```
4343

4444
We assume that a transaction will only be used on a single thread. Once your transaction enters the commit phase, you should set `self.committed` to true, so that users cannot do any other operations on the transaction. You `put`, `delete`, `scan`, and `get` implementation should error if the transaction is already committed.

0 commit comments

Comments
 (0)