closed before they can be opened again. (prevents cursors being held
open for longer than they should be and holding database locks.)
$Log$
+ Revision 627.6 2004/11/11 16:21:12 nbryant
+ * database_sleepycat.c: make cdb_rewind enforce that cursors must be
+ closed before they can be opened again. (prevents cursors being held
+ open for longer than they should be and holding database locks.)
+
Revision 627.5 2004/11/11 14:56:16 ajc
* Further adjustments to ldap setup
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
{
int ret = 0;
- if (MYCURSORS[cdb] != NULL)
- cclose(MYCURSORS[cdb]);
+ if (MYCURSORS[cdb] != NULL) {
+ lprintf(CTDL_EMERG, "cdb_rewind: must close cursor on database %d before reopening.\n", cdb);
+ abort();
+ //cclose(MYCURSORS[cdb]);
+ }
/*
* Now initialize the cursor