#include <db.h> int DBcursor->close(DBC *DBcursor);
The DBcursor->close()
method discards the cursor.
It is possible for the DBcursor->close()
method to return DB_LOCK_DEADLOCK,
signaling that any enclosing transaction should be aborted. If the
application is already intending to abort the transaction, this error
should be ignored, and the application should proceed.
After DBcursor->close()
has been called, regardless of its return,
the cursor handle may not be used again.
The DBcursor->close()
method returns a non-zero error value on failure and 0 on success.
The DBcursor->close()
method may fail and return one of the following non-zero errors:
A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.