Browse Source

Fix Rename call

Signed-off-by: Fabian Reinartz <freinartz@google.com>
pull/5805/head
Fabian Reinartz 6 years ago
parent
commit
74b3501161
  1. 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…
Cancel
Save