From b424d29d1b2fb99c654f1cffe6cd57b298c0ab33 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 3 Jan 2013 13:29:17 +0100 Subject: [PATCH] Open the database after removing immutable bits --- src/libstore/local-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 87d6e6a94..333feb2a5 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -297,7 +297,7 @@ LocalStore::LocalStore(bool reserveSpace) curSchema = getSchema(); if (curSchema < 6) upgradeStore6(); - else if (curSchema < 7) upgradeStore7(); + else if (curSchema < 7) { upgradeStore7(); openDB(true); } writeFile(schemaPath, (format("%1%") % nixSchemaVersion).str());