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
volume.tier.upload: Fix deleting replicated volumes (#5743)
rhysm7ee1f520a4b1
diff --git a/weed/shell/command_volume_tier_upload.go b/weed/shell/command_volume_tier_upload.goindex 6932317abb..cb805b0cf7 100644--- a/weed/shell/command_volume_tier_upload.go+++ b/weed/shell/command_volume_tier_upload.go@@ -113,11 +113,14 @@ func doVolumeTierUpload(commandEnv *CommandEnv, writer io.Writer, collection strreturn fmt.Errorf("copy dat file for volume %d on %s to %s: %v", vid, existingLocations[0].Url, dest, err)}+ if keepLocalDatFile {+ return nil+ }// now the first replica has the .idx and .vif files.// ask replicas on other volume server to delete its own local copyfor i, location := range existingLocations {if i == 0 {- break+ continue}fmt.Printf("delete volume %d from %s\n", vid, location.Url)err = deleteVolume(commandEnv.option.GrpcDialOption, vid, location.ServerAddress(), false)