Fix bug in do_gc

This commit is contained in:
Konstantin Knizhnik
2021-04-22 19:37:33 +03:00
parent 4a0a9e748c
commit ff3488fadd
2 changed files with 3 additions and 5 deletions

View File

@@ -3,7 +3,6 @@ use control_plane::compute::ComputeControlPlane;
use control_plane::local_env;
use control_plane::local_env::PointInTime;
use control_plane::storage::TestStorageControlPlane;
use std::{thread, time};
// XXX: force all redo at the end
// -- restart + seqscan won't read deleted stuff
@@ -113,9 +112,6 @@ fn test_pageserver_two_timelines() {
node1.start().unwrap();
node2.start().unwrap();
//give walreceiver time to connect
thread::sleep(time::Duration::from_secs(3));
// check node1
node1.safe_psql(
"postgres",

View File

@@ -463,7 +463,9 @@ impl PageCache {
self.db.delete_range_cf(cf, &minbuf[..], &maxbuf[..])?;
maxkey = minkey;
}
} else {
break;
}
}
}
}