Skip to main content

append

Function append 

Source
pub fn append(
    path: &Path,
    generation: u64,
    payload: &[u8],
) -> Result<(), DbError>
Expand description

Append a committed frame.

Callers must provide a generation greater than every complete frame already in the file. latest validates that invariant during recovery; the database commit path supplies generations from its serialized commit lock without rescanning the full log for every append.