Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Make Replay::next_tx_offset pub #1885

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions crates/core/src/db/datastore/locking_tx_datastore/datastore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,18 @@ impl Tx for Locking {
}

impl TxDatastore for Locking {
type Iter<'a> = Iter<'a> where Self: 'a;
type IterByColEq<'a, 'r> = IterByColRange<'a, &'r AlgebraicValue> where Self: 'a;
type IterByColRange<'a, R: RangeBounds<AlgebraicValue>> = IterByColRange<'a, R> where Self: 'a;
type Iter<'a>
= Iter<'a>
where
Self: 'a;
type IterByColEq<'a, 'r>
= IterByColRange<'a, &'r AlgebraicValue>
where
Self: 'a;
type IterByColRange<'a, R: RangeBounds<AlgebraicValue>>
= IterByColRange<'a, R>
where
Self: 'a;

fn iter_tx<'a>(&'a self, ctx: &'a ExecutionContext, tx: &'a Self::Tx, table_id: TableId) -> Result<Self::Iter<'a>> {
tx.iter(ctx, table_id)
Expand Down Expand Up @@ -715,7 +724,7 @@ impl<F> Replay<F> {
f(&mut visitor)
}

pub(crate) fn next_tx_offset(&self) -> u64 {
pub fn next_tx_offset(&self) -> u64 {
self.committed_state.read_arc().next_tx_offset
}
}
Expand Down
Loading