mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 23:37:57 +08:00
filer: slow metadata topic read may lose some change events
fix https://github.com/chrislusf/seaweedfs/issues/2117
This commit is contained in:
@@ -164,6 +164,10 @@ func (m *LogBuffer) copyToFlush() *dataToFlush {
|
|||||||
stopTime: m.stopTime,
|
stopTime: m.stopTime,
|
||||||
data: copiedBytes(m.buf[:m.pos]),
|
data: copiedBytes(m.buf[:m.pos]),
|
||||||
}
|
}
|
||||||
|
// glog.V(4).Infof("%s flushing [0,%d) with %d entries [%v, %v]", m.name, m.pos, len(m.idx), m.startTime, m.stopTime)
|
||||||
|
} else {
|
||||||
|
// glog.V(4).Infof("%s removed from memory [0,%d) with %d entries [%v, %v]", m.name, m.pos, len(m.idx), m.startTime, m.stopTime)
|
||||||
|
m.lastFlushTime = m.stopTime
|
||||||
}
|
}
|
||||||
m.buf = m.prevBuffers.SealBuffer(m.startTime, m.stopTime, m.buf, m.pos)
|
m.buf = m.prevBuffers.SealBuffer(m.startTime, m.stopTime, m.buf, m.pos)
|
||||||
m.pos = 0
|
m.pos = 0
|
||||||
|
Reference in New Issue
Block a user