pageserver - update unload() comment

Update comment to reflect changes made in 5ac4a2 and 98f496
This commit is contained in:
Patrick Insinger
2021-09-02 09:26:20 -07:00
committed by Patrick Insinger
parent 7a03e32dd5
commit 1b9e49eb60

View File

@@ -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()?;
}