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
mount: avoid possible index out of bounds error
chrisluda76af187fbe
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.goindex 4f2c523031..bce97cc495 100644--- a/weed/filer/reader_cache.go+++ b/weed/filer/reader_cache.go@@ -183,6 +183,10 @@ func (s *SingleChunkCacher) readChunkAt(buf []byte, offset int64) (int, error) {s.RLock()defer s.RUnlock()- return copy(buf, s.data[offset:]), s.err+ if s.err != nil {+ return 0, s.err+ }++ return copy(buf, s.data[offset:]), nil}