Files
seaweedfs/weed
Chris LuandClaude Opus 5.5 29c6325bb9 mq logstore: start an offset read at the indexed file holding the offset
A disk read by offset listed the whole partition directory on every call and
filtered the files by their offset ranges, so a lagging consumer paid for the
partition's entire history on each read. The reader's sparse index of log
file names now also keeps each mark's first offset, and an offset read lists
from the last mark starting at or before its offset; offsets grow with names,
so no earlier file can hold it. The index is extended by every listing past
the last name it has seen, so after the first read a call lists at most one
stride of files before its own plus the files after it. When no mark with an
offset range is at or before the offset, as with files that record none, the
read still lists from the first file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:56:35 -08:00
..
2026-04-14 20:48:24 -07:00
2026-04-23 10:05:51 -07:00