lmdb_sys

Function mdb_txn_abort

Source
pub unsafe extern "C" fn mdb_txn_abort(txn: *mut MDB_txn)
Expand description

@brief Abandon all the operations of the transaction instead of saving them.

The transaction handle is freed. It and its cursors must not be used again after this call, except with #mdb_cursor_renew(). @note Earlier documentation incorrectly said all cursors would be freed. Only write-transactions free cursors. @param[in] txn A transaction handle returned by #mdb_txn_begin()