Expand description
The steps of blockfile:read_range: where the lines come from (the output.idx index, the
whole file, the broker’s ring buffer) and how a read is checked and trimmed before it is answered.
Structs§
- Range
Read 🔒 - What the guards at the end of a read need to know about it.
Constants§
- INDEX_
COUNT_ 🔒WAIT - How long a read waits for a file with no line epoch to be counted (the pane’s read allows 30 s).
Functions§
- indexed_
window 🔒 - The lines
output.idxserves for this window, orNonewhen the whole-file path has to answer. - mismatch 🔒
- The answer for a read that expected a generation the file is no longer in.
- read_
from_ 🔒index - The read on the blocking pool: brings
output.idxup to date and reads the window through it. - ring_
buffer_ 🔒lines - The lines the broker’s ring buffer holds for this file of the block.
- whole_
file_ 🔒lines - The whole file from the store, when it has one worth reading, or the refusal to read a huge one.
Nonefalls back to the ring buffer.