}
-// wrapper for txn_abort() that logs/aborts on error
+// Wrapper for txn_abort() that logs/aborts on error. Not part of the backend API.
static void bdb_txabort(DB_TXN *tid) {
int ret;
}
-// wrapper for txn_commit() that logs/aborts on error
+// Wrapper for txn_commit() that logs/aborts on error. Not part of the backend API.
static void bdb_txcommit(DB_TXN *tid) {
int ret;
}
-// wrapper for txn_begin() that logs/aborts on error
+// Wrapper for txn_begin() that logs/aborts on error. Not part of the backend API.
static void bdb_txbegin(DB_TXN **tid) {
int ret;
}
-// panic callback
+// Panic callback for Berkeley DB. Not part of the backend API.
static void bdb_dbpanic(DB_ENV *env, int errval) {
syslog(LOG_ERR, "bdb: PANIC: %s", db_strerror(errval));
bdb_abort();
}
+// Close a cursor -- not part of the backend API.
static void bdb_cclose(DBC *cursor) {
int ret;
}
+// Convenience function to abort if a cursor is still open when we didn't expect it to be.
+// This is not part of the backend API.
static void bdb_bailIfCursor(DBC **cursors, const char *msg) {
int i;