diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-15 10:19:43 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-15 10:19:43 -0700 |
| commit | ee9035b7f006d119fc89f4a9abae3bf23e99dc72 (patch) | |
| tree | 1f2832eb05069a687af36207930bbd12bca22981 | |
| parent | 62b7bb8fc81c42c420db6df880c6c0fc747641bd (diff) | |
| download | seaweedfs-ee9035b7f006d119fc89f4a9abae3bf23e99dc72.tar.xz seaweedfs-ee9035b7f006d119fc89f4a9abae3bf23e99dc72.zip | |
ensure correct next pointer
| -rw-r--r-- | weed/filer/filer_notify_read.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filer/filer_notify_read.go b/weed/filer/filer_notify_read.go index d8b1d38ae..af3ce702e 100644 --- a/weed/filer/filer_notify_read.go +++ b/weed/filer/filer_notify_read.go @@ -307,6 +307,7 @@ func (iter *LogFileQueueIterator) getNext(v *OrderedLogVisitor) (logEntry *filer if collectErr := v.logFileEntryCollector.collectMore(v); collectErr != nil && collectErr != io.EOF { return nil, collectErr } + next = iter.q.Peek() // Re-peek after collectMore } // skip the file if the next entry is before the startTsNs if next != nil && next.TsNs <= iter.startTsNs { |
