mdb_txn_renew function

int mdb_txn_renew(
  1. Pointer<MDB_txn> txn
)

@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. @paramin 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.

Implementation

@ffi.FfiNative<ffi.Int Function(ffi.Pointer<MDB_txn>)>('mdb_txn_renew')
external int mdb_txn_renew(
  ffi.Pointer<MDB_txn> txn,
);