mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
ensure correct next pointer
This commit is contained in:
@@ -307,6 +307,7 @@ func (iter *LogFileQueueIterator) getNext(v *OrderedLogVisitor) (logEntry *filer
|
|||||||
if collectErr := v.logFileEntryCollector.collectMore(v); collectErr != nil && collectErr != io.EOF {
|
if collectErr := v.logFileEntryCollector.collectMore(v); collectErr != nil && collectErr != io.EOF {
|
||||||
return nil, collectErr
|
return nil, collectErr
|
||||||
}
|
}
|
||||||
|
next = iter.q.Peek() // Re-peek after collectMore
|
||||||
}
|
}
|
||||||
// skip the file if the next entry is before the startTsNs
|
// skip the file if the next entry is before the startTsNs
|
||||||
if next != nil && next.TsNs <= iter.startTsNs {
|
if next != nil && next.TsNs <= iter.startTsNs {
|
||||||
|
|||||||
Reference in New Issue
Block a user