Berkeley DB Reference Version 5.3.33

DB_SITE->set_config()

#include <db.h>

int
DB_SITE->set_config(DB_SITE *site, u_int32_t which, u_int32_t value); 

The DB_SITE->set_config() method configures a Replication Manager site.

The DB_SITE->set_config() method returns a non-zero error value on failure and 0 on success.

The Replication Manager site may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is described in repmgr_site.

Parameters

which

This parameter must be set to one of the following values:

value

If 0, the parameter identified by the which is turned off. Otherwise, it is turned on.

Errors

The DB_SITE->set_config() method may fail and return one of the following non-zero errors:

EINVAL

If an invalid flag value or parameter was specified.

Class

DB_SITE

See Also

Replication and Related Methods