Skip to content

Commit 31e71fd

Browse files
committed
comment + fix mvcc version
Signed-off-by: Alex Chi <[email protected]>
1 parent cc8063c commit 31e71fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mini-lsm-mvcc/src/compact/tiered.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ impl TieredCompactionController {
9090
.take(id + 1)
9191
.cloned()
9292
.collect::<Vec<_>>(),
93-
bottom_tier_included: id + 1 >= snapshot.levels.len(),
93+
// Size ratio trigger will never include the bottom level
94+
bottom_tier_included: false,
9495
});
9596
}
9697
}

mini-lsm/src/compact/tiered.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl TieredCompactionController {
9090
.take(id + 1)
9191
.cloned()
9292
.collect::<Vec<_>>(),
93+
// Size ratio trigger will never include the bottom level
9394
bottom_tier_included: false,
9495
});
9596
}

0 commit comments

Comments
 (0)