Skip to content

Commit

Permalink
Add the original LMDB's doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Dec 15, 2024
1 parent 74fe024 commit 607bfaf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions heed/src/envs/env_open_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ impl<T: TlsUsage> EnvOpenOptions<T> {
/// the same thread. Read transactions can be moved in between
/// threads (`Send`).
///
/// ## From LMDB's documentation
///
/// Don't use Thread-Local Storage. Tie reader locktable slots to
/// #MDB_txn objects instead of to threads. I.e. #mdb_txn_reset() keeps
/// the slot reserved for the #MDB_txn object. A thread may use parallel
/// read-only transactions. A read-only transaction may span threads if
/// the user synchronizes its use. Applications that multiplex many
/// user threads over individual OS threads need this option. Such an
/// application must also serialize the write transactions in an OS
/// thread, since LMDB's write locking is unaware of the user threads.
///
/// # Example
///
Expand Down

0 comments on commit 607bfaf

Please sign in to comment.