From d822bf32e470e46a3634638fee3c4b1472d2cd26 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 16:36:35 +0000 Subject: * Close the database before the destructor runs. --- src/libstore/store.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libstore/store.cc') diff --git a/src/libstore/store.cc b/src/libstore/store.cc index 94c992f22936..e792fd28cedc 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -136,6 +136,13 @@ void initDB() } +void closeDB() +{ + /* If the database isn't open, this is a NOP. */ + nixDB.close(); +} + + void createStoreTransaction(Transaction & txn) { Transaction txn2(nixDB); -- cgit 1.4.1