Skip to content

Commit

Permalink
Remove redundant drop
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Aug 2, 2023
1 parent 0f546e2 commit 64cbebf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pageserver/src/tenant/timeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3751,8 +3751,6 @@ impl Timeline {
stats.new_deltas_count = Some(new_layers.len());
stats.new_deltas_size = Some(new_layers.iter().map(|l| l.desc.file_size).sum());

drop(all_keys_iter); // So that deltas_to_compact is no longer borrowed

match TryInto::<CompactLevel0Phase1Stats>::try_into(stats)
.and_then(|stats| serde_json::to_string(&stats).context("serde_json::to_string"))
{
Expand Down

0 comments on commit 64cbebf

Please sign in to comment.