Library Version 11.2.5.2

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.

### Errors

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

### Class

DbSite

### See Also

Replication and Related Methods

Prev | Up | Next
DbChannel::set_timeout() | Home | DbSite::get_config()