layer_manager: more clippy

This commit is contained in:
Joonas Koivunen
2023-08-16 16:53:53 +03:00
parent bb222abde1
commit 2caa8bcc23

View File

@@ -9,7 +9,6 @@ use utils::{
use crate::{
config::PageServerConf,
metrics::TimelineMetrics,
tenant::{
layer_map::{BatchedUpdates, LayerMap},
storage_layer::{
@@ -214,7 +213,7 @@ impl LayerManager {
// NB: the layer file identified by descriptor `l` is guaranteed to be present
// in the LayerFileManager because compaction kept holding `layer_removal_cs` the entire
// time, even though we dropped `Timeline::layers` inbetween.
Self::delete_historic_layer(&layer_removal_cs, l, &mut updates, &mut self.layer_fmgr)?;
Self::delete_historic_layer(layer_removal_cs, l, &mut updates, &mut self.layer_fmgr)?;
}
updates.flush();
Ok(())