Skip to content

Commit

Permalink
fix: remove data directory appending for influx_inspect verify (#23336)
Browse files Browse the repository at this point in the history
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 #22572
  • Loading branch information
candrewlee14 authored May 14, 2022
1 parent 1c89102 commit 7c31f92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/influx_inspect/verify/tsm/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 7c31f92

Please sign in to comment.