mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 12:28:52 +08:00
switch hardlink id from int64 to bytes
This commit is contained in:
@@ -32,8 +32,8 @@ func (dir *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fs.Node) (f
|
||||
}
|
||||
|
||||
// update old file to hardlink mode
|
||||
if oldFile.entry.HardLinkId == 0 {
|
||||
oldFile.entry.HardLinkId = util.RandomInt64()
|
||||
if oldFile.entry.HardLinkId == nil {
|
||||
oldFile.entry.HardLinkId = util.RandomBytes(16)
|
||||
oldFile.entry.HardLinkCounter = 1
|
||||
}
|
||||
oldFile.entry.HardLinkCounter++
|
||||
|
Reference in New Issue
Block a user