Skip to content

Commit e17ba2a

Browse files
don't delete state-salt file on rm-all-state-snapshots (#15223)
re-revert commit reverted due to release
1 parent af6b551 commit e17ba2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

turbo/app/snapshots_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ var snapshotCommand = cli.Command{
221221
Name: "rm-all-state-snapshots",
222222
Action: func(cliCtx *cli.Context) error {
223223
dirs := datadir.New(cliCtx.String(utils.DataDirFlag.Name))
224-
os.Remove(filepath.Join(dirs.Snap, "salt-state.txt"))
224+
//os.Remove(filepath.Join(dirs.Snap, "salt-state.txt"))
225225
return dir.DeleteFiles(dirs.SnapIdx, dirs.SnapHistory, dirs.SnapDomain, dirs.SnapAccessors)
226226
},
227227
Flags: joinFlags([]cli.Flag{&utils.DataDirFlag}),

0 commit comments

Comments
 (0)