mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
log
This commit is contained in:
parent
b0de01ff3b
commit
759cda0fe2
|
@ -30,6 +30,7 @@ func (logBuffer *LogBuffer) LoopProcessLogData(
|
||||||
logBuffer.ReleaseMeory(bytesBuf)
|
logBuffer.ReleaseMeory(bytesBuf)
|
||||||
}
|
}
|
||||||
bytesBuf = logBuffer.ReadFromBuffer(lastReadTime)
|
bytesBuf = logBuffer.ReadFromBuffer(lastReadTime)
|
||||||
|
// fmt.Printf("ReadFromBuffer by %v\n", lastReadTime)
|
||||||
if bytesBuf == nil {
|
if bytesBuf == nil {
|
||||||
if waitForDataFn() {
|
if waitForDataFn() {
|
||||||
continue
|
continue
|
||||||
|
@ -39,6 +40,7 @@ func (logBuffer *LogBuffer) LoopProcessLogData(
|
||||||
}
|
}
|
||||||
|
|
||||||
buf := bytesBuf.Bytes()
|
buf := bytesBuf.Bytes()
|
||||||
|
// fmt.Printf("ReadFromBuffer by %v size %d\n", lastReadTime, len(buf))
|
||||||
|
|
||||||
batchSize := 0
|
batchSize := 0
|
||||||
var startReadTime time.Time
|
var startReadTime time.Time
|
||||||
|
|
Loading…
Reference in a new issue