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.

simplify a bit (#3631)

famosss41af5a6ee52c
diff --git a/weed/storage/volume_read.go b/weed/storage/volume_read.go
index 20bda83bb0..e9c7cf4cba 100644
--- a/weed/storage/volume_read.go
+++ b/weed/storage/volume_read.go
@@ -143,6 +143,7 @@ func (v *Volume) readNeedleDataInto(n *needle.Needle, readOption *ReadOption, wr
return ErrorNotFound
}
actualOffset = nv.Offset.ToActualOffset()
+ readOption.VolumeRevision = v.SuperBlock.CompactionRevision
}
count, err := n.ReadNeedleData(v.DataBackend, actualOffset, buf, x)
v.dataFileAccessLock.RUnlock()