about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-03T12·29+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-03T12·29+0100
commitb424d29d1b2fb99c654f1cffe6cd57b298c0ab33 (patch)
treebf8e597f033dc74c2c36e532f9365ab56d0eaf89 /src/libstore
parent3007f5737734856b58768f83edefe8574f373333 (diff)
Open the database after removing immutable bits
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 87d6e6a94449..333feb2a5f30 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());