mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-27 14:06:45 +00:00
revert fix for #707
This commit is contained in:
@@ -2328,9 +2328,10 @@ impl LayeredTimeline {
|
||||
// If GC horizon is at 2500, we can remove layers A and B, but
|
||||
// we cannot remove C, even though it's older than 2500, because
|
||||
// the delta layer 2000-3000 depends on it.
|
||||
if !layers
|
||||
.image_layer_exists(&l.get_key_range(), &(l.get_lsn_range().end..new_gc_cutoff))?
|
||||
{
|
||||
if !layers.image_layer_exists(
|
||||
&l.get_key_range(),
|
||||
&(l.get_lsn_range().end..disk_consistent_lsn + 1),
|
||||
)? {
|
||||
debug!(
|
||||
"keeping {} because it is the latest layer",
|
||||
l.filename().display()
|
||||
|
||||
Reference in New Issue
Block a user