mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-31 12:00:42 +00:00
compaction: reflect LayerE now managing remote client
This commit is contained in:
@@ -3461,21 +3461,10 @@ impl Timeline {
|
||||
layer_names_to_delete.push(delta.layer_desc().filename());
|
||||
}
|
||||
|
||||
guard.finish_compact_l0(
|
||||
&layer_removal_cs,
|
||||
remove_layers,
|
||||
&insert_layers,
|
||||
&self.metrics,
|
||||
)?;
|
||||
guard.finish_compact_l0(&layer_removal_cs, remove_layers, &insert_layers)?;
|
||||
|
||||
drop_wlock(guard);
|
||||
|
||||
// Also schedule the deletions in remote storage
|
||||
if let Some(remote_client) = &self.remote_client {
|
||||
// FIXME: this needs to be moved to LayerE::drop possibly?
|
||||
remote_client.schedule_layer_file_deletion(&layer_names_to_delete)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user