mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
e862b2529a
commit
1e3fdf366f
|
@ -189,7 +189,7 @@ func (m *LogBuffer) ReadFromBuffer(lastReadTime time.Time) (bufferCopy *bytes.Bu
|
||||||
defer m.RUnlock()
|
defer m.RUnlock()
|
||||||
|
|
||||||
if !m.lastFlushTime.IsZero() && m.lastFlushTime.After(lastReadTime) {
|
if !m.lastFlushTime.IsZero() && m.lastFlushTime.After(lastReadTime) {
|
||||||
if time.Now().Sub(m.lastFlushTime) < m.flushInterval * 2 {
|
if time.Now().Sub(m.lastFlushTime) < m.flushInterval*2 {
|
||||||
diff := m.lastFlushTime.Sub(lastReadTime)
|
diff := m.lastFlushTime.Sub(lastReadTime)
|
||||||
glog.V(4).Infof("lastFlush:%v lastRead:%v diff:%v", m.lastFlushTime, lastReadTime, diff)
|
glog.V(4).Infof("lastFlush:%v lastRead:%v diff:%v", m.lastFlushTime, lastReadTime, diff)
|
||||||
return nil, ResumeFromDiskError
|
return nil, ResumeFromDiskError
|
||||||
|
|
Loading…
Reference in a new issue