- added a new function to the database interface, cdb_close_cursor(). always
[citadel.git] / citadel / database_sleepycat.c
index 3c52989ae995a06df8c54cd35cf064b6671d07e0..8579e733228bff894402e5aa60040b7b02caec41 100644 (file)
@@ -570,6 +570,13 @@ void cdb_free(struct cdbdata *cdb)
        phree(cdb);
 }
 
+void cdb_close_cursor(int cdb)
+{
+       if (MYCURSORS[cdb] != NULL)
+               cclose(MYCURSORS[cdb]);
+
+       MYCURSORS[cdb] = NULL;
+}
 
 /* 
  * Prepare for a sequential search of an entire database.