Skip to content

Commit 607bfaf

Browse files
committed
Add the original LMDB's doc
1 parent 74fe024 commit 607bfaf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

heed/src/envs/env_open_options.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ impl<T: TlsUsage> EnvOpenOptions<T> {
9999
/// the same thread. Read transactions can be moved in between
100100
/// threads (`Send`).
101101
///
102+
/// ## From LMDB's documentation
103+
///
104+
/// Don't use Thread-Local Storage. Tie reader locktable slots to
105+
/// #MDB_txn objects instead of to threads. I.e. #mdb_txn_reset() keeps
106+
/// the slot reserved for the #MDB_txn object. A thread may use parallel
107+
/// read-only transactions. A read-only transaction may span threads if
108+
/// the user synchronizes its use. Applications that multiplex many
109+
/// user threads over individual OS threads need this option. Such an
110+
/// application must also serialize the write transactions in an OS
111+
/// thread, since LMDB's write locking is unaware of the user threads.
102112
///
103113
/// # Example
104114
///

0 commit comments

Comments
 (0)