Replace a predicate that was always false with a literal (#151)

* Replace a predicate that was always false with a literal

* comment + fix mvcc version

Signed-off-by: Alex Chi <iskyzh@gmail.com>

---------

Signed-off-by: Alex Chi <iskyzh@gmail.com>
Co-authored-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Joseph Koshakow
2025-06-07 07:27:52 -04:00
committed by GitHub
parent 067fd2e682
commit af96807ecc
2 changed files with 4 additions and 2 deletions

View File

@@ -90,7 +90,8 @@ impl TieredCompactionController {
.take(id + 1)
.cloned()
.collect::<Vec<_>>(),
bottom_tier_included: id + 1 >= snapshot.levels.len(),
// Size ratio trigger will never include the bottom level
bottom_tier_included: false,
});
}
}