cmd: ignore missing wal in debug kill command (#6160)

closes: #6159
This commit is contained in:
Aleksandr Bezobchuk
2021-02-22 13:24:56 +00:00
committed by GitHub
parent 5a39f72aa8
commit 6912c34b58
+5 -1
View File
@@ -79,7 +79,11 @@ func killCmdHandler(cmd *cobra.Command, args []string) error {
logger.Info("copying node WAL...")
if err := copyWAL(conf, tmpDir); err != nil {
return err
if !os.IsNotExist(err) {
return err
}
logger.Info("node WAL does not exist; continuing...")
}
logger.Info("copying node configuration...")