Skip to content

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.

remove unused code

chrislu9f50b310a017
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 042952f7d0..aac43c6973 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -444,7 +444,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
concurrentChunks := make(chan struct{}, *worker.options.concurrenctChunks)
var wg sync.WaitGroup
var uploadError error
- var collection, replication string
fmt.Printf("uploading %s in %d chunks ...\n", fileName, chunkCount)
for i := int64(0); i < int64(chunkCount) && uploadError == nil; i++ {
@@ -485,12 +484,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
}
targetUrl := "http://" + assignResult.Location.Url + "/" + assignResult.FileId
- if collection == "" {
- collection = assignResult.Collection
- }
- if replication == "" {
- replication = assignResult.Replication
- }
uploadOption := &operation.UploadOption{
UploadUrl: targetUrl,