Set the environment variable SUPPRESS_DBVERSION_CHECK to any
authorArt Cancro <ajc@citadel.org>
Fri, 4 Jul 2008 03:51:50 +0000 (03:51 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 4 Jul 2008 03:51:50 +0000 (03:51 +0000)
non-null value, to suppress the test that prohibits Berkeley DB downgrade.

citadel/database_sleepycat.c

index f6ac91179856ca95c71977ee23f5e085323efa2f..7b3823ff62b37a04137e44d73e4e812e28dd2ea3 100644 (file)
@@ -283,7 +283,8 @@ void open_databases(void)
        CtdlLogPrintf(CTDL_DEBUG, "Calculated dbversion: %d\n", current_dbversion);
        CtdlLogPrintf(CTDL_DEBUG, "  Previous dbversion: %d\n", CitControl.MMdbversion);
 
-       if (CitControl.MMdbversion > current_dbversion) {
+       if ( (getenv("SUPPRESS_DBVERSION_CHECK") == NULL)
+          && (CitControl.MMdbversion > current_dbversion) ) {
                CtdlLogPrintf(CTDL_EMERG, "You are attempting to run the Citadel server using a version\n"
                                        "of Berkeley DB that is older than that which last created or\n"
                                        "updated the database.  Because this would probably cause data\n"