$Log$
+ Revision 580.17 2001/08/03 16:43:53 ajc
+ * database_sleepycat.c: when running txn_checkpoint(), handle DB_INCOMPLETE
+ return code as a warning instead of an error worthy of aborting the server.
+ See http://www.sleepycat.com/docs/api_c/txn_checkpoint.html for explanation.
+
Revision 580.16 2001/07/30 03:46:14 nbryant
made ForEachUser use a read-only cursor, too. there is now only one piece of
code in Citadel proper (not the database driver) that needs transactions.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
* the specified number of kilobytes has been written, or if the specified
* number of minutes has passed, since the last checkpoint.
*/
-#define MAX_CHECKPOINT_KBYTES 0
+#define MAX_CHECKPOINT_KBYTES 256
#define MAX_CHECKPOINT_MINUTES 15
/*****************************************************************************/
MAX_CHECKPOINT_KBYTES,
MAX_CHECKPOINT_MINUTES,
0);
- if (ret) {
+ if ( (ret != 0) && (ret != DB_INCOMPLETE) ) {
lprintf(1, "cdb_checkpoint: txn_checkpoint: %s\n", db_strerror(ret));
abort();
}
+ if (ret == DB_INCOMPLETE) {
+ lprintf(3, "WARNING: txn_checkpoint: %s\n", db_strerror(ret));
+ }
/* Cull the logs if we haven't done so for 24 hours */
if ((time(NULL) - last_cull) > 86400L) {