Browse Source

fix

pull/1287/head
Chris Lu 5 years ago
parent
commit
78ea937606
  1. 2
      weed/queue/log_buffer.go

2
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) fmt.Printf("l=%d, h=%d\n", l, h)
*/ */
for { for l <= h {
mid := (l + h) / 2 mid := (l + h) / 2
pos := m.idx[mid] pos := m.idx[mid]
t := readTs(m.buf, m.idx[mid]) t := readTs(m.buf, m.idx[mid])

|||||||
100:0
Loading…
Cancel
Save