Fix restoring non-relational data during compute node startup

This commit is contained in:
Konstantin Knizhnik
2021-05-20 14:05:43 +03:00
parent 06f96f9600
commit 20b6279beb
11 changed files with 44 additions and 52 deletions

View File

@@ -256,7 +256,6 @@ impl PostgresNode {
// new data directory
pub fn init_from_page_server(&self) -> Result<()> {
let pgdata = self.pgdata();
println!(
"Extracting base backup to create postgres instance: path={} port={}",
pgdata.display(),
@@ -348,7 +347,6 @@ impl PostgresNode {
fs::create_dir_all(self.pgdata().join("pg_wal"))?;
fs::create_dir_all(self.pgdata().join("pg_wal").join("archive_status"))?;
self.pg_resetwal(&["-f"])?;
Ok(())
}