pub unsafe extern "C" fn mdb_set_relctx(
txn: *mut MDB_txn,
dbi: MDB_dbi,
ctx: *mut c_void,
) -> c_int
Expand description
Set a context pointer for a #MDB_FIXEDMAP database’s relocation function.
See #mdb_set_relfunc and #MDB_rel_func for more details.
§Arguments
txn
(direction in) - A transaction handle returned by #mdb_txn_begin()dbi
(direction in) - A database handle returned by #mdb_dbi_open()ctx
(direction in) - An arbitrary pointer for whatever the application needs. It will be passed to the callback function set by #mdb_set_relfunc as its relctx parameter whenever the callback is invoked.
§Returns
A non-zero error value on failure and 0 on success. Some possible errors are:
- EINVAL - an invalid parameter was specified.