Obtain an iterator which traverses the commitlog located at the `root` directory starting from `offset` and yielding [`StoredCommit`]s. Starts the traversal without the upfront I/O imposed by [`Commitlog::open`]. See [`Commitlog::commits_from`] for more information.
(
root: CommitLogDir,
offset: u64,
)
| 626 | /// Starts the traversal without the upfront I/O imposed by [`Commitlog::open`]. |
| 627 | /// See [`Commitlog::commits_from`] for more information. |
| 628 | pub fn commits_from( |
| 629 | root: CommitLogDir, |
| 630 | offset: u64, |
| 631 | ) -> io::Result<impl Iterator<Item = Result<StoredCommit, error::Traversal>>> { |
| 632 | commitlog::commits_from(repo::Fs::new(root, None)?, DEFAULT_LOG_FORMAT_VERSION, offset) |
| 633 | } |
| 634 | |
| 635 | /// Obtain an iterator which traverses the commitlog located at the `root` |
| 636 | /// directory from the start, yielding [`Transaction`]s. |