mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-05 16:47:04 +02:00
wait for data
This commit is contained in:
parent
f8957b84c1
commit
054d0b3487
|
@ -66,16 +66,20 @@ func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startPosition
|
||||||
isDone = true
|
isDone = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if waitForDataFn() {
|
lastTsNs := logBuffer.LastTsNs
|
||||||
continue
|
for lastTsNs == logBuffer.LastTsNs {
|
||||||
} else {
|
if waitForDataFn() {
|
||||||
isDone = true
|
continue
|
||||||
return
|
} else {
|
||||||
|
isDone = true
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if logBuffer.IsStopping() {
|
if logBuffer.IsStopping() {
|
||||||
isDone = true
|
isDone = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
buf := bytesBuf.Bytes()
|
buf := bytesBuf.Bytes()
|
||||||
|
|
Loading…
Reference in a new issue