Library Version 18.1.40

DbEnv::rep_get_config()
Prev | Chapter 11. Replication Methods | Next

## DbEnv::rep_get_config()

    #include <db_cxx.h>

    int
    DbEnv::rep_get_config(u_int32_t which, int *onoffp);

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

The `DbEnv::rep_get_config()` method may be called at any time during the life of the application.

The `DbEnv::rep_get_config()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### which

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

#### 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.

### Class

DbEnv

### See Also

Replication and Related Methods, DbEnv::rep_set_config()

Prev | Up | Next
DbEnv::rep_get_clockskew() | Home | DbEnv::rep_get_limit()