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
filer: do not return no content for empty files
Chris Lu7ba75e3d5a4b
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex f77462adb5..160ee9d97b 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -61,15 +61,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,return}- if len(entry.Chunks) == 0 && len(entry.Content) == 0 {- glog.V(1).Infof("no file chunks for %s, attr=%+v", path, entry.Attr)- stats.FilerRequestCounter.WithLabelValues("read.nocontent").Inc()- w.WriteHeader(http.StatusNoContent)- return- }-w.Header().Set("Accept-Ranges", "bytes")- w.Header().Set("Last-Modified", entry.Attr.Mtime.Format(http.TimeFormat))// mime typemimeType := entry.Attr.Mime