fix: remove data directory appending for influx_inspect verify (#23336)

influx_inspect verify -dir will no longer append the "/data" path to the dir.  Files are checked recursively, so this will still include files in the "/data" path as well as other subdirectories.
 
closes https://github.com/influxdata/influxdb/issues/22572
pull/23425/head
Andrew Lee 2022-05-13 18:58:44 -06:00 committed by GitHub
parent 1c89102276
commit 7c31f92067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ func (cmd *Command) Run(args ...string) error {
return err
}
dataPath := filepath.Join(path, "data")
tw := tabwriter.NewWriter(cmd.Stdout, 16, 8, 0, '\t', 0)
var runner verifier
@ -55,7 +54,7 @@ func (cmd *Command) Run(args ...string) error {
} else {
runner = &verifyChecksums{}
}
err := runner.Run(tw, dataPath)
err := runner.Run(tw, path)
tw.Flush()
return err
}