mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
pageserver - update unload() comment
Update comment to reflect changes made in 5ac4a2 and 98f496
This commit is contained in:
committed by
Patrick Insinger
parent
7a03e32dd5
commit
1b9e49eb60
@@ -1166,10 +1166,8 @@ impl LayeredTimeline {
|
||||
}
|
||||
|
||||
// Call unload() on all frozen layers, to release memory.
|
||||
// TODO: On-disk layers shouldn't consume much memory to begin with,
|
||||
// so this shouldn't be necessary. But currently the DeltaLayer and
|
||||
// ImageLayer code slurps the whole file into memory, so they do in
|
||||
// fact consume a lot of memory.
|
||||
// This shouldn't be much memory, as only metadata is slurped
|
||||
// into memory.
|
||||
for layer in layers.iter_historic_layers() {
|
||||
layer.unload()?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user