From 78ea9376060654162a0f80d6ccff76e63ae35365 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 5 Apr 2020 17:34:26 -0700 Subject: [PATCH] fix --- weed/queue/log_buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/queue/log_buffer.go b/weed/queue/log_buffer.go index 0a8298be4..6925757a7 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])