Add comment to 'pg stop' changes

This commit is contained in:
anastasia
2021-09-08 13:20:17 +03:00
committed by Stas Kelvich
parent 5488ce8834
commit 3d17255400

View File

@@ -482,6 +482,13 @@ impl PostgresNode {
}
pub fn stop(&self, destroy: bool) -> Result<()> {
// If we are going to destroy data directory,
// use immediate shutdown mode, otherwise,
// shutdown gracefully to leave the data directory sane.
//
// Compute node always starts from scratch, so stop
// without destroy only used for testing and debugging.
//
if destroy {
self.pg_ctl(&["-m", "immediate", "stop"], &None)?;
println!(