mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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 a new issue