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/22572pull/23425/head
parent
1c89102276
commit
7c31f92067
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue