* Require Berkeley DB 4.4.

* Checkpoint after an upgrade.
This commit is contained in:
Eelco Dolstra 2005-12-06 15:00:04 +00:00
parent dc528128cc
commit 760264bffe
2 changed files with 6 additions and 4 deletions

View file

@ -1,11 +1,11 @@
# Berkeley DB
DB = db-4.3.28.NC
DB = db-4.4.16.NC
$(DB).tar.gz:
@echo "Nix requires Berkeley DB to build."
@echo "Please download version 4.3.28 from"
@echo " http://downloads.sleepycat.com/db-4.3.28.NC.tar.gz"
@echo "Please download version 4.4.16 from"
@echo " http://downloads.sleepycat.com/db-4.4.16.NC.tar.gz"
@echo "and place it in the externals/ directory."
false

View file

@ -306,11 +306,13 @@ void Database::open(const string & path)
/* Try again. */
open2(path, false);
/* Force a checkpoint, as per the BDB docs. */
env->txn_checkpoint(DB_FORCE, 0, 0);
}
else
rethrow(e);
}
}