SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix empty hard link id
Chris Lu0790c6d605d4
diff --git a/weed/filer/filerstore_hardlink.go b/weed/filer/filerstore_hardlink.goindex 9cb32f27f2..0fbf8310ef 100644--- a/weed/filer/filerstore_hardlink.go+++ b/weed/filer/filerstore_hardlink.go@@ -24,7 +24,7 @@ func (fsw *FilerStoreWrapper) handleUpdateToHardLinks(ctx context.Context, entry}// 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 {return err}