Library Version 12.1.6.0

DbSite::close()
Prev | Chapter 11. Replication Methods | Next

## DbSite::close()

    #include <db_cxx.h>

    int
    DbSite::close();

The `DbSite::close()` method deallocates the DbSite handle. The handle must not be accessed again after this method is called, regardless of the return value.

Use of this method does not in any way affect the configuration of the site to which the handle refers, or of the replication group in general.

All DbSite handles must be closed before the owning DbEnv handle is closed.

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

### Class

DbSite

### See Also

Replication and Related Methods

Prev | Up | Next
DbEnv::repmgr_stat_print() | Home | DbEnv::txn_applied()