log reading adds delay between retries

This commit is contained in:
Chris Lu
2021-07-01 14:01:25 -07:00
parent 067eb15e70
commit 2420c60fc4
2 changed files with 36 additions and 23 deletions

View File

@@ -170,6 +170,8 @@ func (m *LogBuffer) copyToFlush() *dataToFlush {
m.lastFlushTime = m.stopTime
}
m.buf = m.prevBuffers.SealBuffer(m.startTime, m.stopTime, m.buf, m.pos)
m.startTime = time.Unix(0,0)
m.stopTime = time.Unix(0,0)
m.pos = 0
m.idx = m.idx[:0]
return d