[][src]Function lmdb_sys::mdb_txn_renew

pub unsafe extern "C" fn mdb_txn_renew(txn: *mut MDB_txn) -> c_int

@brief Renew a read-only transaction.

This acquires a new reader lock for a transaction handle that had been released by #mdb_txn_reset(). It must be called before a reset transaction may be used again. @param[in] txn A transaction handle returned by #mdb_txn_begin() @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • #MDB_PANIC - a fatal error occurred earlier and the environment must be shut down.
  • EINVAL - an invalid parameter was specified.