mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
gc: reflect LayerE now managing remote client
This commit is contained in:
@@ -3792,16 +3792,12 @@ impl Timeline {
|
||||
layer_names_to_delete.push(doomed_layer.filename());
|
||||
result.layers_removed += 1;
|
||||
}
|
||||
let apply = guard.finish_gc_timeline(&layer_removal_cs, gc_layers, &self.metrics)?;
|
||||
let apply = guard.finish_gc_timeline(&layer_removal_cs, gc_layers)?;
|
||||
|
||||
if result.layers_removed != 0 {
|
||||
fail_point!("after-timeline-gc-removed-layers");
|
||||
}
|
||||
|
||||
if let Some(remote_client) = &self.remote_client {
|
||||
remote_client.schedule_layer_file_deletion(&layer_names_to_delete)?;
|
||||
}
|
||||
|
||||
apply.flush();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user