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

Introduce AnyTls #315

Merged
merged 9 commits into from
Mar 6, 2025
Merged

Introduce AnyTls #315

merged 9 commits into from
Mar 6, 2025

Conversation

dureuill
Copy link
Contributor

@dureuill dureuill commented Mar 4, 2025

Pull Request

Related issue

Fixes #314

What does this PR do?

  • Introduces AnyTls
  • RoTxn<T> decay to RoTxn<AnyTls>
  • To allow for transmutes, refactor Env and RoTxn to separate the phantom T (WithTls/WithoutTls/AnyTls) and the data + makes them repr transparent.
  • Remove T from cursors: these types can never be Send because they morally have a reference to a RoTxn, which is not Sync.
  • Removed the unsafe Send implementations of all the iterators.

@dureuill dureuill requested a review from Kerollmops March 4, 2025 10:14
@Kerollmops Kerollmops added this to the v0.22.0 🔑 milestone Mar 4, 2025
@Kerollmops Kerollmops added the breaking A change that is breaking the semver label Mar 4, 2025
@Kerollmops Kerollmops force-pushed the any-tls branch 2 times, most recently from 1ee34ba to 100b429 Compare March 6, 2025 09:32
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Kerollmops Kerollmops merged commit 58b703c into main Mar 6, 2025
18 checks passed
@Kerollmops Kerollmops deleted the any-tls branch March 6, 2025 10:20
@Kerollmops Kerollmops linked an issue Mar 6, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A change that is breaking the semver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ergonomics of WithoutTls and WithTls Change the RoTxn to support both WithTls and WithoutTls
2 participants