mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
tsdb: fix typo for wrong metric name (#6938)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
5ddd1dcf0f
commit
df14bca643
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user