DB_ENV->rep_get_config()
Prev | Chapter 10. Replication Methods | Next

## DB_ENV->rep_get_config()

    #include <db.h>

    int
    DB_ENV->rep_get_config(DB_ENV *env, u_int32_t which, int *onoffp);

The `DB_ENV->rep_get_config()` method returns whether the specified which parameter is currently set or not. See the DB_ENV->rep_set_config() method for the configuration flags that can be set for replication.

The `DB_ENV->rep_get_config()` method may be called at any time during the life of the application.

The `DB_ENV->rep_get_config()` method returns a non-zero error value on failure and 0 on success.

### Parameters

#### onoffp

The onoffp parameter references memory into which the configuration of the specified which parameter is copied.

If the returned onoff value is zero, the parameter is off; otherwise it is on.

#### which

The which parameter is the configuration flag which is being checked. See the DB_ENV->rep_set_config() method for a list of configuration flags that you can provide to this parameter.

### Class

DB_ENV

### See Also

Replication and Related Methods, DB_ENV->rep_set_config()

Prev | Up | Next
DB_ENV->rep_get_clockskew() | Home | DB_ENV->rep_get_limit()