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

Chris Lu78ea93760606
diff --git a/weed/queue/log_buffer.go b/weed/queue/log_buffer.go
index 0a8298be40..6925757a71 100644
--- a/weed/queue/log_buffer.go
+++ b/weed/queue/log_buffer.go
@@ -162,7 +162,7 @@ func (m *LogBuffer) ReadFromBuffer(lastReadTime time.Time) (ts time.Time, buffer
fmt.Printf("l=%d, h=%d\n", l, h)
*/
- for {
+ for l <= h {
mid := (l + h) / 2
pos := m.idx[mid]
t := readTs(m.buf, m.idx[mid])