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