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 skip loop
Konstantin Lebedev10d435f2c256
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.goindex b65d1996e1..3c5538550c 100644--- a/weed/shell/command_volume_fix_replication.go+++ b/weed/shell/command_volume_fix_replication.go@@ -200,12 +200,16 @@ func (c *commandVolumeFixReplication) deleteOneVolume(commandEnv *CommandEnv, wr}}+ сollectionIsMismatch := falsefor _, volumeReplica := range replicas {if volumeReplica.info.Collection != replica.info.Collection {fmt.Fprintf(writer, "skip delete volume %d as collection %s is mismatch: %s\n", replica.info.Id, replica.info.Collection, volumeReplica.info.Collection)- continue+ сollectionIsMismatch = true}}+ if сollectionIsMismatch {+ continue+ }fmt.Fprintf(writer, "deleting volume %d from %s ...\n", replica.info.Id, replica.location.dataNode.Id)