Skip to content

Commit

Permalink
Make nested_read_txn only available on heed not heed3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Jan 24, 2025
1 parent 09d1167 commit f7651f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions heed/src/envs/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ impl Env<WithoutTls> {
///
/// # Ok(()) }
/// ```
#[cfg(not(master3))]
pub fn nested_read_txn<'p>(&'p self, parent: &'p RwTxn) -> Result<RoTxn<'p, WithoutTls>> {
RoTxn::<WithoutTls>::nested(self, parent)
}
Expand Down
1 change: 1 addition & 0 deletions heed/src/txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<'e, T> RoTxn<'e, T> {
Ok(RoTxn { txn: NonNull::new(txn), env: Cow::Owned(env), _tls_marker: PhantomData })
}

#[cfg(not(master3))]
pub(crate) fn nested<'p>(
env: &'p Env<WithoutTls>,
parent: &'p RwTxn,
Expand Down

0 comments on commit f7651f0

Please sign in to comment.