meilisearch / heed

A fully typed LMDB wrapper with minimum overhead 🐦
https://docs.rs/heed
MIT License
569 stars 52 forks source link

Make the `RoTxn: Send` #192

Closed MarinPostma closed 1 year ago

MarinPostma commented 1 year ago

Pull Request

Related issue

Fixes #191

What does this PR do?

We found out that implementing Sync for RoTxn is unsafe, it should instead only implement Send. This PR changes the sync-read-txn to send-read-txn, and replaces the implementation Sync for RoTxn with Send

PR checklist

Please check if your PR fulfills the following requirements:

Thank you so much for contributing to Meilisearch!