From 760264bffe7f233f7c1fd5e9fccb9b3c189afd58 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Dec 2005 15:00:04 +0000 Subject: * Require Berkeley DB 4.4. * Checkpoint after an upgrade. --- src/libstore/db.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstore/db.cc') diff --git a/src/libstore/db.cc b/src/libstore/db.cc index a0b1c16cd..2c925134a 100644 --- a/src/libstore/db.cc +++ b/src/libstore/db.cc @@ -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); } - } -- cgit v1.2.3