#include <db_cxx.h>


The DbSite::remove() method removes the site from the replication group. If called at the master site, repmgr updates the membership database directly. If called from a client, this method causes a request to be sent to the master to perform the operation. The method then awaits confirmation.

The DbSite handle must not be accessed again after this method is called, regardless of the return value.

The DbSite::remove() 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.


The DbSite::remove() method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:


The master updated the database but did not receive enough acknowledgements from clients sufficient to meet the current ack policy.



See Also

Replication and Related Methods