#include <db_cxx.h>


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.


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:



See Also

Replication and Related Methods