File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ use crate::{Env, Result};
7
7
8
8
/// A read-only transaction.
9
9
///
10
- /// ## LMDB Limitation
10
+ /// ## LMDB Limitations
11
11
///
12
- /// It's a must to keep read transaction short lived.
12
+ /// It's a must to keep read transactions short- lived.
13
13
///
14
- /// Active Read transactions prevent reuse of pages freed
14
+ /// Active Read transactions prevent the reuse of pages freed
15
15
/// by newer write transactions, thus the database can grow quickly.
16
16
pub struct RoTxn < ' e > {
17
17
pub ( crate ) txn : * mut ffi:: MDB_txn ,
@@ -58,8 +58,10 @@ fn abort_txn(txn: *mut ffi::MDB_txn) {
58
58
59
59
/// A read-write transaction.
60
60
///
61
- /// Only one [RwTxn] may exist on the same environnement at the same time,
62
- /// it two exist the new one may wait on a Mutex for [RwTxn::commit] or [RwTxn::abort] of
61
+ /// ## LMDB Limitations
62
+ ///
63
+ /// Only one [RwTxn] may exist in the same environment at the same time,
64
+ /// it two exist, the new one may wait on a Mutex for [RwTxn::commit] or [RwTxn::abort] of
63
65
/// the first one.
64
66
pub struct RwTxn < ' p > {
65
67
pub ( crate ) txn : RoTxn < ' p > ,
You can’t perform that action at this time.
0 commit comments