Don't try to do a DB_STAT_ALL statistics dump
authorArt Cancro <ajc@citadel.org>
Wed, 26 Sep 2007 19:47:07 +0000 (19:47 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 26 Sep 2007 19:47:07 +0000 (19:47 +0000)
if DB_STAT_ALL is not defined.  (I don't know where this is or isn't
defined, but the copy of Berkeley DB on the LCDS mainframe seens to
need it)

citadel/database_sleepycat.c

index bf11656884b409fd53fa3f8b7890594970938d8c..84339e62701b06ddc3b6a57554247a7b69c15e80 100644 (file)
@@ -504,7 +504,9 @@ void close_databases(void)
        }
 
        /* print some statistics... */
+#ifdef DB_STAT_ALL
        dbenv->lock_stat_print(dbenv, DB_STAT_ALL);
+#endif
 
        /* close the tables */
        for (a = 0; a < MAXCDB; ++a) {