mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 15:31:29 +08:00
clean up logs
This commit is contained in:
parent
407a52fc93
commit
5c0fcae039
@ -40,7 +40,7 @@ func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startPosition
|
|||||||
if bytesBuf != nil {
|
if bytesBuf != nil {
|
||||||
logBuffer.ReleaseMemory(bytesBuf)
|
logBuffer.ReleaseMemory(bytesBuf)
|
||||||
}
|
}
|
||||||
println("LoopProcessLogData", readerName, "sent messages total", entryCounter)
|
// println("LoopProcessLogData", readerName, "sent messages total", entryCounter)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@ -105,7 +105,7 @@ func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startPosition
|
|||||||
}
|
}
|
||||||
if stopTsNs != 0 && logEntry.TsNs > stopTsNs {
|
if stopTsNs != 0 && logEntry.TsNs > stopTsNs {
|
||||||
isDone = true
|
isDone = true
|
||||||
println("stopTsNs", stopTsNs, "logEntry.TsNs", logEntry.TsNs)
|
// println("stopTsNs", stopTsNs, "logEntry.TsNs", logEntry.TsNs)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lastReadPosition = NewMessagePosition(logEntry.TsNs, batchIndex)
|
lastReadPosition = NewMessagePosition(logEntry.TsNs, batchIndex)
|
||||||
|
Loading…
Reference in New Issue
Block a user