An Embeddable Datastore Engine |
Tweet |
Follow @Vedis |
Vedis C/C++ API Reference - Datastore Handle.
Closing a Vedis datastore handle.
Description
The vedis_close() routine is the destructor for the vedis handle. Calls to vedis_close() return VEDIS_OK if the vedis object is successfully destroyed and all associated resources are deallocated.
Parameters
pStore |
Vedis datastore handle. |
Return value
VEDIS_BUSY: Another thread or process have an exclusive lock on the database. In this case, the caller should wait until the lock holder relinquish it.
VEDIS_IOERR: OS specific error.
VEDIS_ABORT: Another thread have released the database handle.
For a human-readable error message, you can extract the database error log via vedis_config() with a configuration verb set to VEDIS_CONFIG_ERR_LOG.
See also