add more docs

without.crypto
Dan Burkert 10 years ago
parent f8f13b3e86
commit 1d220c2116
  1. 2
      src/transaction.rs

@ -146,6 +146,7 @@ impl <'env> Transaction<'env> for RoTransaction<'env> {
}
}
/// An inactive read-only transaction.
pub struct InactiveTransaction<'env> {
txn: *mut ffi::MDB_txn,
_no_sync: marker::NoSync,
@ -162,6 +163,7 @@ impl <'env> Drop for InactiveTransaction<'env> {
impl <'env> InactiveTransaction<'env> {
/// Renews the inactive transaction and returns the active read-only transaction.
pub fn renew(self) -> LmdbResult<RoTransaction<'env>> {
let txn = self.txn;
unsafe {

Loading…
Cancel
Save