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 isMisplaced() in command_volume_fix_replication.go (#4988)
zehweh2b9dda7d2e96
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.goindex 43db0ff3bc..9b6a64e6f8 100644--- a/weed/shell/command_volume_fix_replication.go+++ b/weed/shell/command_volume_fix_replication.go@@ -572,12 +572,12 @@ func isMisplaced(replicas []*VolumeReplica, replicaPlacement *super_block.Replicfor i := 0; i < len(replicas); i++ {others := otherThan(replicas, i)- if satisfyReplicaPlacement(replicaPlacement, others, *replicas[i].location) {- return false+ if !satisfyReplicaPlacement(replicaPlacement, others, *replicas[i].location) {+ return true}}- return true+ return false}