aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-12-12 19:14:38 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-12-12 19:14:38 +0000
commitd87549c1c7bb6f85ff0a019b33b315ace0013e6b (patch)
treeef54e0c9b79ce5419bab05a1e7046edac72a32a5 /src/libstore/store.cc
parent8463f27d8cd09d54648de21c747f895cdb558f83 (diff)
* Automatically delete the old referers table.
Diffstat (limited to 'src/libstore/store.cc')
-rw-r--r--src/libstore/store.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index fbbf12269..db12ba2d5 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -1034,8 +1034,12 @@ static void upgradeStore09()
nixDB.setString(txn, dbReferrers, addPrefix(*i, *j), "");
cerr << ".";
}
-
+
cerr << "\n";
txn.commit();
+
+ nixDB.closeTable(dbReferers);
+
+ nixDB.deleteTable("referers");
}