Skip to content

Commit

Permalink
Merge pull request #9638 from influxdata/aa_backport_manifestfix
Browse files Browse the repository at this point in the history
backport: check for failure case where backup dir has no manifest files
  • Loading branch information
aanthony1243 authored Mar 27, 2018
2 parents cdae4cc + 6437adc commit 34edefe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/influxd/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ func (cmd *Command) parseFlags(args []string) error {
cmd.manifestMeta, cmd.manifestFiles, err = backup_util.LoadIncremental(cmd.backupFilesPath)
if err != nil {
return fmt.Errorf("restore failed while processing manifest files: %s", err.Error())
} else if cmd.manifestMeta == nil {
// No manifest files found.
return fmt.Errorf("No manifest files found in: %s\n", cmd.backupFilesPath)

}
}
} else {
Expand Down

0 comments on commit 34edefe

Please sign in to comment.