support different log_archive prototype in DB versions prior to 3.3
authorNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 21 Sep 2001 20:58:25 +0000 (20:58 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Fri, 21 Sep 2001 20:58:25 +0000 (20:58 +0000)
citadel/ChangeLog
citadel/database_sleepycat.c

index cc2db12e81ac8c7855d62efae8e9bed7f7f69eb8..05c818984da8a32db03611a36bc5922261118313 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 580.46  2001/09/21 20:58:25  nbryant
+ support different log_archive prototype in DB versions prior to 3.3
+
  Revision 580.45  2001/09/20 04:17:10  ajc
  * Inbound network authentication working.  Fixed a bug in the split-horizon
    algorithm.  Still need to move the 'netpoll' command into the server.
@@ -2755,3 +2758,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 0af8b4b5a4200bf3f032567775ddb00c7cb5e35c..2c51ebc9d4f9ee10870d161b1b9e994ed7618a21 100644 (file)
@@ -183,7 +183,11 @@ static void cdb_cull_logs(void) {
        flags = DB_ARCH_ABS;
 
        /* Get the list of names. */
+#if DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR < 3
+       if ((ret = log_archive(dbenv, &list, flags, NULL)) != 0) {
+#else
        if ((ret = log_archive(dbenv, &list, flags)) != 0) {
+#endif
                lprintf(1, "cdb_cull_logs: %s\n", db_strerror(ret));
                return;
        }