Skip to content

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.

ignore draining error

Chris Lu1fd8926ac7ea
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 684b4d247b..667d0b4bed 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -240,7 +240,7 @@ func ReadUrl(fileUrl string, offset int64, size int, buf []byte, isReadRange boo
}
}
// drains the response body to avoid memory leak
- data, err := ioutil.ReadAll(reader)
+ data, _ := ioutil.ReadAll(reader)
if len(data) != 0 {
err = fmt.Errorf("buffer size is too small. remains %d", len(data))
}