chickadee » lmdb-lolevel » mdb-txn-commit

mdb-txn-commit txnprocedure

Commit all the operations of a transaction into the database.

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.

A transaction handle returned by (mdb-txn-begin)

Some possible error conditions:

(exn lmdb EINVAL)
an invalid parameter was specified.
(exn lmdb ENOSPC)
no more disk space.
(exn lmdb EIO)
a low-level I/O error occurred while writing.
(exn lmdb ENOMEM)
out of memory.