DB_ENV->set_flags API Ref

#include <db.h>

int DB_ENV->set_flags(DB_ENV *dbenv, u_int32_t flags, int onoff);

int DB_ENV->get_flags(DB_ENV *dbenv, u_int32_t *flagsp);


Description: DB_ENV->set_flags

Configure a database environment.

The database environment's flag values may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_flags", one or more whitespace characters, and the method flag parameter as a string; for example, "set_flags DB_TXN_NOSYNC". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.

The DB_ENV->set_flags method returns a non-zero error value on failure and 0 on success.

Parameters
flags onoff

Errors

The DB_ENV->set_flags method may fail and return one of the following non-zero errors:


EINVAL

Description: DB_ENV->get_flags

The DB_ENV->get_flags method returns the configuration flags.

The DB_ENV->get_flags method may be called at any time during the life of the application.

The DB_ENV->get_flags method returns a non-zero error value on failure and 0 on success.

Parameters
flagsp


Class DB_ENV
See Also Database Environments and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.