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 wrong logic about reader isRandomMode()

chrislu928d29af9ec5
diff --git a/weed/filer/reader_pattern.go b/weed/filer/reader_pattern.go
index ec73c59a2a..38a51d788d 100644
--- a/weed/filer/reader_pattern.go
+++ b/weed/filer/reader_pattern.go
@@ -25,5 +25,5 @@ func (rp *ReaderPattern) MonitorReadAt(offset int64, size int) {
}
func (rp *ReaderPattern) IsRandomMode() bool {
- return rp.isSequentialCounter >= 0
+ return rp.isSequentialCounter < 0
}