Skip to content

Commit

Permalink
fix tests + fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <[email protected]>
  • Loading branch information
skyzh committed Jul 23, 2024
1 parent d4f4a7c commit 6f9685b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pageserver/src/tenant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7341,7 +7341,8 @@ mod tests {

#[tokio::test]
async fn test_simple_bottom_most_compaction_with_retain_lsns() -> anyhow::Result<()> {
let harness = TenantHarness::create("test_simple_bottom_most_compaction_with_retain_lsns").await?;
let harness =
TenantHarness::create("test_simple_bottom_most_compaction_with_retain_lsns").await?;
let (tenant, ctx) = harness.load().await;

fn get_key(id: u32) -> Key {
Expand Down
6 changes: 5 additions & 1 deletion pageserver/src/tenant/timeline/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,11 @@ impl Timeline {
if cfg!(debug_assertions) {
assert_eq!(
lowest_retain_lsn,
*retain_lsns_below_horizon.iter().min().unwrap()
*retain_lsns_below_horizon
.iter()
.min()
.copied()
.unwrap_or(gc_cutoff)
);
}
info!(
Expand Down

0 comments on commit 6f9685b

Please sign in to comment.