Function lmdb_master_sys::mdb_env_set_flags

source ·
pub unsafe extern "C" fn mdb_env_set_flags(
    env: *mut MDB_env,
    flags: c_uint,
    onoff: c_int,
) -> c_int
Expand description

Set environment flags.

This may be used to set some flags in addition to those from #mdb_env_open(), or to unset these flags. If several threads change the flags at the same time, the result is undefined.

§Arguments

  • env (direction in) - An environment handle returned by #mdb_env_create()
  • flags (direction in) - The flags to change, bitwise OR’ed together
  • onoff (direction in) - A non-zero value sets the flags, zero clears them.

§Returns

A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.