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
avoid nil cases when error
Chris Lu1645d3c18534
diff --git a/go/operation/submit.go b/go/operation/submit.goindex 3c7d233ad5..154e507194 100644--- a/go/operation/submit.go+++ b/go/operation/submit.go@@ -132,7 +132,10 @@ func upload_one_chunk(filename string, reader io.Reader, master, replication strfileUrl, fid := "http://"+ret.PublicUrl+"/"+ret.Fid, ret.Fidglog.V(4).Info("Uploading part ", filename, " to ", fileUrl, "...")uploadResult, uploadError := Upload(fileUrl, filename, reader, false, "application/octet-stream")- return fid, uploadResult.Size, uploadError+ if uploadError != nil {+ return fid, 0, uploadError+ }+ return fid, uploadResult.Size, nil}func upload_file_id_list(fileUrl, filename string, fids []string) error {