mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 05:01:23 -08:00
Fix Rename call
Signed-off-by: Fabian Reinartz <freinartz@google.com>
This commit is contained in:
parent
76990518d3
commit
74b3501161
2
wal.go
2
wal.go
|
@ -1303,7 +1303,7 @@ func MigrateWAL(logger log.Logger, dir string) (err error) {
|
|||
if err := repl.Close(); err != nil {
|
||||
return errors.Wrap(err, "close new WAL")
|
||||
}
|
||||
if err := fileutil.Rename(tmpdir, dir); err != nil {
|
||||
if err := fileutil.Replace(tmpdir, dir); err != nil {
|
||||
return errors.Wrap(err, "replace old WAL")
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue