Skip to main content

search_open

Function search_open 

Source
pub fn search_open(
    root: &Path,
    q: &Search,
    open_blocks: &[Arc<Open>],
) -> Result<Results>
Expand description

As search, but also reads open — snapshots of blocks that have been acknowledged and not yet published.

This is what keeps read-your-writes true once the write-ahead log moves the acknowledgement ahead of the seal (ARCHITECTURE section 4): without it a client that got a 200 and queried immediately would get nothing back for up to max_block_age. See crate::signal::Open for why a cursor stays valid across the seal.