Skip to main content

restamp

Function restamp 

Source
fn restamp(rows: &mut [Row], stamped: &[(Rev, Digest)])
Expand description

Give every row the hash its rev now has, and chain the file again.

A row that spends a rev stamps that rev’s own bytes; one that does not — a tag — stamps the head it was appended under, which is the last rev before it in the file. The same rule Store writes rows under, read off a file instead of a session.