mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-07 06:00:38 +00:00
Code review: Hold another lock during eviction
This commit is contained in:
@@ -888,6 +888,7 @@ impl Timeline {
|
||||
LayerFileName::Test(_) => unreachable!(),
|
||||
});
|
||||
|
||||
let mut _gc_lock = self.layer_removal_cs.lock().await;
|
||||
let mut layers = self.layers.write().unwrap();
|
||||
let mut updates = layers.batch_update();
|
||||
self.delete_historic_layer(local_layer, &mut updates)?;
|
||||
|
||||
Reference in New Issue
Block a user