filer.meta.tail: support untilTimeAgo for a range

This commit is contained in:
chrislu
2022-05-30 16:16:23 -07:00
parent f214dfb1f5
commit 968ca95b49
2 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startReadTime
}
// glog.V(4).Infof("%s ReadFromBuffer by %v", readerName, lastReadTime)
if bytesBuf == nil {
if stopTsNs != 0 {
isDone = true
return
}
if waitForDataFn() {
continue
} else {