From df14bca6436743a57c9bd50c4bc4d50b1c87f77f Mon Sep 17 00:00:00 2001 From: johncming Date: Mon, 9 Mar 2020 16:25:31 +0800 Subject: [PATCH] tsdb: fix typo for wrong metric name (#6938) Signed-off-by: johncming --- tsdb/repair.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/repair.go b/tsdb/repair.go index 0df612d3d..c9179d5b5 100644 --- a/tsdb/repair.go +++ b/tsdb/repair.go @@ -41,7 +41,7 @@ func repairBadIndexVersion(logger log.Logger, dir string) error { return errors.Wrapf(err, "block dir: %q", d) } - tmpFiles := make([]string, 0, len(dir)) + tmpFiles := make([]string, 0, len(dirs)) defer func() { for _, tmp := range tmpFiles { if err := os.RemoveAll(tmp); err != nil {