diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-10-24 01:26:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-24 01:26:42 -0700 |
| commit | 7d147f238c51f3df77da8b13d48b86ede83497ce (patch) | |
| tree | 63b7dce990fe3e31c5f320c2ee86ebbcf2d3faba /weed/util/log_buffer/log_read_stateless.go | |
| parent | d220875ef4601e74b6ab49e47f8e2dd36510482c (diff) | |
| download | seaweedfs-7d147f238c51f3df77da8b13d48b86ede83497ce.tar.xz seaweedfs-7d147f238c51f3df77da8b13d48b86ede83497ce.zip | |
avoid repeated reading disk (#7369)
* avoid repeated reading disk
* checks both flush time AND read position advancement
* wait on cond
* fix reading
Gap detection and skipping to earliest memory time
Time-based reads that include events at boundary times for first reads (offset ≤ 0)
Aggregated subscriber wake-up via ListenersWaits signaling
* address comments
Diffstat (limited to 'weed/util/log_buffer/log_read_stateless.go')
| -rw-r--r-- | weed/util/log_buffer/log_read_stateless.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/log_buffer/log_read_stateless.go b/weed/util/log_buffer/log_read_stateless.go index b48413bc8..abc7d9ac0 100644 --- a/weed/util/log_buffer/log_read_stateless.go +++ b/weed/util/log_buffer/log_read_stateless.go @@ -121,7 +121,7 @@ func (logBuffer *LogBuffer) ReadMessagesAtOffset(startOffset int64, maxMessages logBuffer.RUnlock() // Data not in memory - attempt disk read if configured - // CRITICAL FIX: Don't return error here - data may be on disk! + // Don't return error here - data may be on disk! // Fall through to disk read logic below glog.V(2).Infof("[StatelessRead] Data at offset %d not in memory (buffer: %d-%d), attempting disk read", startOffset, bufferStartOffset, currentBufferEnd) |
