mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 19:19:11 +08:00
minor
This commit is contained in:
parent
0790c6d605
commit
7726965a47
@ -32,7 +32,7 @@ func (dir *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fs.Node) (f
|
||||
}
|
||||
|
||||
// update old file to hardlink mode
|
||||
if oldFile.entry.HardLinkId == nil {
|
||||
if len(oldFile.entry.HardLinkId) == 0 {
|
||||
oldFile.entry.HardLinkId = util.RandomBytes(16)
|
||||
oldFile.entry.HardLinkCounter = 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user