mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
parent
8b1f83a0ed
commit
c4897df09c
|
@ -114,8 +114,8 @@ func create(tag string, t time.Time) (f *os.File, filename string, err error) {
|
|||
f, err := os.Create(fname)
|
||||
if err == nil {
|
||||
symlink := filepath.Join(dir, link)
|
||||
os.Remove(symlink) // ignore err
|
||||
os.Symlink(fname, symlink) // ignore err
|
||||
os.Remove(symlink) // ignore err
|
||||
os.Symlink(name, symlink) // ignore err
|
||||
return f, fname, nil
|
||||
}
|
||||
lastErr = err
|
||||
|
|
Loading…
Reference in a new issue