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
go fmt
Chris Lu6c01fb6d2d99
diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.goindex 2c571684df..dbe135dd3f 100644--- a/weed/server/filer_server_handlers_write.go+++ b/weed/server/filer_server_handlers_write.go@@ -149,7 +149,9 @@ func (fs *FilerServer) updateFilerStore(ctx context.Context, r *http.Request, wstats.FilerRequestCounter.WithLabelValues("postStoreWrite").Inc()start := time.Now()- defer func() { stats.FilerRequestHistogram.WithLabelValues("postStoreWrite").Observe(time.Since(start).Seconds()) }()+ defer func() {+ stats.FilerRequestHistogram.WithLabelValues("postStoreWrite").Observe(time.Since(start).Seconds())+ }()path := r.URL.PathexistingEntry, err := fs.filer.FindEntry(ctx, filer2.FullPath(path))diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.goindex 0727d480ec..492b559431 100644--- a/weed/server/filer_server_handlers_write_autochunk.go+++ b/weed/server/filer_server_handlers_write_autochunk.go@@ -71,7 +71,9 @@ func (fs *FilerServer) doAutoChunk(ctx context.Context, w http.ResponseWriter, rstats.FilerRequestCounter.WithLabelValues("postAutoChunk").Inc()start := time.Now()- defer func() { stats.FilerRequestHistogram.WithLabelValues("postAutoChunk").Observe(time.Since(start).Seconds()) }()+ defer func() {+ stats.FilerRequestHistogram.WithLabelValues("postAutoChunk").Observe(time.Since(start).Seconds())+ }()multipartReader, multipartReaderErr := r.MultipartReader()if multipartReaderErr != nil {@@ -190,7 +192,9 @@ func (fs *FilerServer) doUpload(urlLocation string, w http.ResponseWriter, r *htstats.FilerRequestCounter.WithLabelValues("postAutoChunkUpload").Inc()start := time.Now()- defer func() { stats.FilerRequestHistogram.WithLabelValues("postAutoChunkUpload").Observe(time.Since(start).Seconds()) }()+ defer func() {+ stats.FilerRequestHistogram.WithLabelValues("postAutoChunkUpload").Observe(time.Since(start).Seconds())+ }()ioReader := ioutil.NopCloser(bytes.NewBuffer(chunkBuf))uploadResult, uploadError := operation.Upload(urlLocation, fileName, ioReader, false, contentType, nil, auth)