mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 00:39:56 +08:00
fix empty hard link id
This commit is contained in:
@@ -24,7 +24,7 @@ func (fsw *FilerStoreWrapper) handleUpdateToHardLinks(ctx context.Context, entry
|
|||||||
}
|
}
|
||||||
|
|
||||||
// remove old hard link
|
// remove old hard link
|
||||||
if err == nil && bytes.Compare(existingEntry.HardLinkId, entry.HardLinkId) != 0 {
|
if err == nil && len(existingEntry.HardLinkId) != 0 && bytes.Compare(existingEntry.HardLinkId, entry.HardLinkId) != 0 {
|
||||||
if err = fsw.DeleteHardLink(ctx, existingEntry.HardLinkId); err != nil {
|
if err = fsw.DeleteHardLink(ctx, existingEntry.HardLinkId); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user