File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,16 @@ impl<T: TlsUsage> EnvOpenOptions<T> {
99
99
/// the same thread. Read transactions can be moved in between
100
100
/// threads (`Send`).
101
101
///
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.
102
112
///
103
113
/// # Example
104
114
///
You can’t perform that action at this time.
0 commit comments