lmdb_master_sys

Function mdb_txn_renew

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

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.

§Arguments

  • txn (direction in) - A transaction handle returned by #mdb_txn_begin()

§Returns

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.