tsdb: fix typo for wrong metric name (#6938)

Signed-off-by: johncming <johncming@yahoo.com>
pull/6945/head
johncming 2020-03-09 16:25:31 +08:00 committed by GitHub
parent 5ddd1dcf0f
commit df14bca643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func repairBadIndexVersion(logger log.Logger, dir string) error {
return errors.Wrapf(err, "block dir: %q", d) return errors.Wrapf(err, "block dir: %q", d)
} }
tmpFiles := make([]string, 0, len(dir)) tmpFiles := make([]string, 0, len(dirs))
defer func() { defer func() {
for _, tmp := range tmpFiles { for _, tmp := range tmpFiles {
if err := os.RemoveAll(tmp); err != nil { if err := os.RemoveAll(tmp); err != nil {