Skip to content

Commit 37a6d90

Browse files
ppdoggskyzh
andauthored
Update mvcc.rs (#143)
* Update mvcc.rs fix that tests can't use watermark * fix fmt Signed-off-by: Alex Chi <[email protected]> --------- Signed-off-by: Alex Chi <[email protected]> Co-authored-by: Alex Chi <[email protected]>
1 parent 68bfffb commit 37a6d90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mini-lsm-starter/src/mvcc.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![allow(dead_code)] // TODO(you): remove this lint after implementing this mod
1717

1818
pub mod txn;
19-
mod watermark;
19+
pub mod watermark;
2020

2121
use std::{
2222
collections::{BTreeMap, HashSet},
@@ -25,9 +25,8 @@ use std::{
2525

2626
use parking_lot::Mutex;
2727

28-
use crate::lsm_storage::LsmStorageInner;
29-
3028
use self::{txn::Transaction, watermark::Watermark};
29+
use crate::lsm_storage::LsmStorageInner;
3130

3231
pub(crate) struct CommittedTxnData {
3332
pub(crate) key_hashes: HashSet<u32>,

0 commit comments

Comments
 (0)