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
dedup keeps the largest replica
Chris Lub63b042afc06
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.goindex 326cb2a405..20d004c6bc 100644--- a/weed/shell/command_volume_fix_replication.go+++ b/weed/shell/command_volume_fix_replication.go@@ -412,14 +412,14 @@ func pickOneReplicaToDelete(replicas []*VolumeReplica, replicaPlacement *super_bsort.Slice(replicas, func(i, j int) bool {a, b := replicas[i], replicas[j]- if a.info.CompactRevision != b.info.CompactRevision {- return a.info.CompactRevision < b.info.CompactRevision+ if a.info.Size != b.info.Size {+ return a.info.Size < b.info.Size}if a.info.ModifiedAtSecond != b.info.ModifiedAtSecond {return a.info.ModifiedAtSecond < b.info.ModifiedAtSecond}- if a.info.Size != b.info.Size {- return a.info.Size < b.info.Size+ if a.info.CompactRevision != b.info.CompactRevision {+ return a.info.CompactRevision < b.info.CompactRevision}return false})