Skip to main content

Module read_steps

Module read_steps 

Source
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§

RangeRead 🔒
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.idx serves for this window, or None when 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.idx up 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. None falls back to the ring buffer.

Type Aliases§

FileStoreRef 🔒