DbEnv::rep_get_nsites()

#include <db_cxx.h>

int
DbEnv::rep_get_nsites(u_int32_t *nsitesp);

The DbEnv::rep_get_nsites() method returns the total number of participant sites in the replication group. For Base API applications, his value is configurable using the DbEnv::rep_set_nsites() method. For Replication Manager applications, this value is determined dynamically.

For Base API applications, this method may be called at any time during the life of the application. For Replication Manager applications, this method may be called only after a successful call to the DbEnv::repmgr_start() method.

The DbEnv::rep_get_nsites() 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

nsitesp

The DbEnv::rep_get_nsites() method returns the total number of participant sites in the replication group in nsitesp.

Class

DbEnv

See Also

Replication and Related Methods, DbEnv::rep_set_nsites()