Library Version 11.2.5.3

DB_SITE->close()
Prev | Chapter 10. Replication Methods | Next

## DB_SITE->close()

    #include <db.h>

    int
    DB_SITE->close(DB_SITE *site);

The `DB_SITE->close()` method deallocates the DB_SITE 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 DB_SITE handles must be closed before the owning DB_ENV handle is closed.

The `DB_SITE->close()` method returns a non-zero error value on failure and 0 on success.

### Errors

The `DB_SITE->close()` method may fail and return one of the following non-zero errors:

### Class

DB_SITE

### See Also

Replication and Related Methods

Prev | Up | Next
DB_CHANNEL->set_timeout() | Home | DB_SITE->get_config()