DB_ENV->log_set_config API Ref

#include <db.h>

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

int DB_ENV->log_get_config(DB_ENV *dbenv, u_int32_t which, int *onoffp);


Description: DB_ENV->log_set_config

The DB_ENV->log_set_config method configures the Berkeley DB logging subsystem.

The DB_ENV->log_set_config method configures a database environment, not only operations performed using the specified DB_ENV handle.

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

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

Parameters
flags onoff

Errors

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


EINVAL

Description: DB_ENV->log_get_config

The DB_ENV->log_get_config method returns whether the specified which parameter is currently set or not.

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

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

Parameters
which onoffp If the returned onoff value is zero, the parameter is off; otherwise on.


Class DB_ENV
See Also Database Environments and Related Methods

APIRef

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