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
Filtering by volume id is prioritized.
user9668b15f3868
diff --git a/weed/shell/command_volume_configure_replication.go b/weed/shell/command_volume_configure_replication.goindex fe4eab22af..7e9627b40e 100644--- a/weed/shell/command_volume_configure_replication.go+++ b/weed/shell/command_volume_configure_replication.go@@ -111,16 +111,16 @@ func (c *commandVolumeConfigureReplication) Do(args []string, commandEnv *Commanfunc getVolumeFilter(replicaPlacement *super_block.ReplicaPlacement, volumeId uint32, collectionPattern string) func(message *master_pb.VolumeInformationMessage) bool {replicaPlacementInt32 := uint32(replicaPlacement.Byte())- if collectionPattern != "" {+ if volumeId > 0 {return func(v *master_pb.VolumeInformationMessage) bool {- matched, err := filepath.Match(collectionPattern, v.Collection)- if err != nil {- return false- }- return matched+ return v.Id == volumeId && v.ReplicaPlacement != replicaPlacementInt32}}return func(v *master_pb.VolumeInformationMessage) bool {- return v.Id == volumeId && v.ReplicaPlacement != replicaPlacementInt32+ matched, err := filepath.Match(collectionPattern, v.Collection)+ if err != nil {+ return false+ }+ return matched}}