[refer #67] Replace File.write with File.write_all

This commit is contained in:
Konstantin Knizhnik
2021-04-26 09:30:03 +03:00
parent 96b6f350a7
commit abcecc992e

View File

@@ -381,8 +381,8 @@ impl WalRedoProcess {
let mut config = OpenOptions::new()
.append(true)
.open(PathBuf::from(&datadir).join("postgresql.conf"))?;
config.write(b"shared_buffers=128kB\n")?;
config.write(b"fsync=off\n")?;
config.write_all(b"shared_buffers=128kB\n")?;
config.write_all(b"fsync=off\n")?;
}
// Start postgres itself
let mut child = Command::new("postgres")