lmdb_sys

Function 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

@brief 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. @param[in] env An environment handle returned by #mdb_env_create() @param[in] flags The flags to change, bitwise OR’ed together @param[in] onoff A non-zero value sets the flags, zero clears them. @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.