mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
layer: remove dead comment and code
This commit is contained in:
@@ -467,8 +467,6 @@ impl LayerInner {
|
||||
|
||||
let mut rx = self.status.subscribe();
|
||||
|
||||
// why call get instead of looking at the watch? because get will downgrade any
|
||||
// Arc<_> it finds, because we set the wanted_evicted
|
||||
if self.get().is_none() {
|
||||
// it was not evictable in the first place
|
||||
// our store to the wanted_evicted does not matter; it will be reset by next download
|
||||
@@ -1034,10 +1032,6 @@ impl From<ResidentLayer> for Layer {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("Layer has been removed from LayerMap already")]
|
||||
pub(crate) struct RemovedFromLayerMap;
|
||||
|
||||
/// Holds the actual downloaded layer, and handles evicting the file on drop.
|
||||
pub(crate) struct DownloadedLayer {
|
||||
owner: Weak<LayerInner>,
|
||||
|
||||
Reference in New Issue
Block a user