adjust symlink

as recommended in https://github.com/chrislusf/seaweedfs/issues/160
This commit is contained in:
chrislusf 2015-07-12 21:50:44 -07:00
parent 430f371a97
commit 8b1f83a0ed

View file

@ -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