pub fn reset_to(repo: &impl Repo, offset: u64) -> Result<()>Expand description
Remove all data past the given transaction offset.
The function deletes log segments starting from the newest. As multiple
segments cannot be deleted atomically, the log may be left longer than
offset if the function does not return successfully.
If the function returns successfully, the most recent Commit in the
log will contain the transaction at offset.
The log must be re-opened if it is to be used after calling this function.