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.

fix filer.remote.sync on a S3 cloud mount

chrislu84e9934bf914
diff --git a/weed/filer/stream.go b/weed/filer/stream.go
index d23a1aeab8..dba1dc908b 100644
--- a/weed/filer/stream.go
+++ b/weed/filer/stream.go
@@ -300,6 +300,9 @@ func (c *ChunkStreamReader) prepareBufferFor(offset int64) (err error) {
if c.bufferOffset <= offset && offset < c.bufferOffset+int64(len(c.buffer)) {
return nil
}
+ if c.chunkView == nil {
+ return io.EOF
+ }
// fmt.Printf("fetch for offset %d\n", offset)
c.chunkView = c.chunkView.Next