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
simplify
Chris Lu7d3672c60a8e
diff --git a/weed/filer2/filer_notify_append.go b/weed/filer2/filer_notify_append.goindex 0e6e8d50fb..62cfd2cd16 100644--- a/weed/filer2/filer_notify_append.go+++ b/weed/filer2/filer_notify_append.go@@ -13,7 +13,7 @@ import (func (f *Filer) appendToFile(targetFile string, data []byte) error {- assignResult, err, uploadResult, err2 := f.assignAndUpload(data)+ assignResult, uploadResult, err2 := f.assignAndUpload(data)if err2 != nil {return err2}@@ -54,7 +54,7 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {return err}-func (f *Filer) assignAndUpload(data []byte) (*operation.AssignResult, error, *operation.UploadResult, error) {+func (f *Filer) assignAndUpload(data []byte) (*operation.AssignResult, *operation.UploadResult, error) {// assign a volume locationassignRequest := &operation.VolumeAssignRequest{Count: 1,@@ -64,18 +64,18 @@ func (f *Filer) assignAndUpload(data []byte) (*operation.AssignResult, error, *o}assignResult, err := operation.Assign(f.GetMaster(), f.GrpcDialOption, assignRequest)if err != nil {- return nil, nil, nil, fmt.Errorf("AssignVolume: %v", err)+ return nil, nil, fmt.Errorf("AssignVolume: %v", err)}if assignResult.Error != "" {- return nil, nil, nil, fmt.Errorf("AssignVolume error: %v", assignResult.Error)+ return nil, nil, fmt.Errorf("AssignVolume error: %v", assignResult.Error)}// upload datatargetUrl := "http://" + assignResult.Url + "/" + assignResult.FiduploadResult, err := operation.UploadData(targetUrl, "", false, data, false, "", nil, assignResult.Auth)if err != nil {- return nil, nil, nil, fmt.Errorf("upload data %s: %v", targetUrl, err)+ return nil, nil, fmt.Errorf("upload data %s: %v", targetUrl, err)}// println("uploaded to", targetUrl)- return assignResult, err, uploadResult, nil+ return assignResult, uploadResult, nil}