Skip to content

Commit

Permalink
Merge pull request #11 from matthewbastien/update-readme
Browse files Browse the repository at this point in the history
Update the README with the changes that were made to LMDB
  • Loading branch information
QuietMisdreavus authored Dec 17, 2024
2 parents 1672f06 + 136570b commit aa026f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ This wrapper provides exposure of the library's C interfaces to Swift, allowing

Changes in LMDB will be pulled into this repository as the upstream project evolves. The LMDB repository is mirrored here: <https://github.com/LMDB/lmdb>.

## Changes to LMDB

Swift LMDB makes two local changes to LMDB in order to pass thread sanitization checks in [IndexStoreDB](https://github.com/swiftlang/indexstore-db). These changes are:
- Use `_Atomic` instead of `volatile` for transaction types
- Build with POSIX mutexes enabled and robust mutexes disabled on Linux and macOS

## License

The included LMDB database project is released under [The OpenLDAP Public License](https://git.openldap.org/openldap/openldap/-/blob/mdb.master/libraries/liblmdb/LICENSE). This same license applies to the Swift code included in this repository.

0 comments on commit aa026f5

Please sign in to comment.