projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- added a new function to the database interface, cdb_close_cursor(). always
[citadel.git]
/
citadel
/
database_sleepycat.c
diff --git
a/citadel/database_sleepycat.c
b/citadel/database_sleepycat.c
index 3c52989ae995a06df8c54cd35cf064b6671d07e0..8579e733228bff894402e5aa60040b7b02caec41 100644
(file)
--- a/
citadel/database_sleepycat.c
+++ b/
citadel/database_sleepycat.c
@@
-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.