mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Require Berkeley DB 4.4.
* Checkpoint after an upgrade.
This commit is contained in:
parent
dc528128cc
commit
760264bffe
2 changed files with 6 additions and 4 deletions
6
externals/Makefile.am
vendored
6
externals/Makefile.am
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue