Skip to main content

fetch_footer

Function fetch_footer 

Source
async fn fetch_footer(
    io: &dyn WalObjectIo,
    object: &ListedObject,
) -> Result<(Header, Vec<FooterEntry>)>
Expand description

Reads the header, trailer and footer of object and verifies them: the header must carry the sequence of the key, the trailer must be well formed, the footer must match the checksum the trailer holds and its segments must tile the object body.

A short object is read whole. Otherwise the header and a window at the end of the object are read concurrently, and the footer is read separately only when it starts before the window.