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 duplicated file id list entries when uploading large file
Chris Luc4a4d3609bf0
diff --git a/go/operation/submit.go b/go/operation/submit.goindex e922a8834b..3c7d233ad5 100644--- a/go/operation/submit.go+++ b/go/operation/submit.go@@ -112,11 +112,8 @@ func (fi FilePart) upload(server string, fid string, maxMB int, master, replicat}fids = append(fids, id)retSize += count- if e = upload_file_id_list(fileUrl, fi.FileName+"-list", fids); e != nil {- return 0, e- }}- return retSize, nil+ err = upload_file_id_list(fileUrl, fi.FileName+"-list", fids)} else {ret, e := Upload(fileUrl, fi.FileName, fi.Reader, fi.IsGzipped, fi.MimeType)if e != nil {@@ -124,7 +121,7 @@ func (fi FilePart) upload(server string, fid string, maxMB int, master, replicat}return ret.Size, e}- return 0, nil+ return}func upload_one_chunk(filename string, reader io.Reader, master, replication string) (fid string, size int, e error) {