Merge pull request #300 from Gouthamve/fix-prom-3956

Close file for windows platform
pull/5805/head
Fabian Reinartz 7 years ago committed by GitHub
commit 7a62f6a0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,6 +61,9 @@ func repairBadIndexVersion(logger log.Logger, dir string) error {
if err := repl.Close(); err != nil {
return err
}
if err := broken.Close(); err != nil {
return err
}
if err := renameFile(repl.Name(), broken.Name()); err != nil {
return err
}

Loading…
Cancel
Save