From f0856fd905ea727e88f3fc14d3c717679ce8359b Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 29 Oct 2005 15:44:02 +0000 Subject: * Repair the referers table from the references table. --- src/libstore/store.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstore') diff --git a/src/libstore/store.cc b/src/libstore/store.cc index 3c91c8e3849e..4e163605a49f 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -844,6 +844,9 @@ void verifyStore(bool checkContents) if (referers.find(*i) == referers.end()) { printMsg(lvlError, format("missing referer mapping from `%1%' to `%2%'") % *j % *i); + referers.insert(*i); + nixDB.setStrings(txn, dbReferers, *j, + Paths(referers.begin(), referers.end())); } if (isValid && validPaths.find(*j) == validPaths.end()) { printMsg(lvlError, format("incomplete closure: `%1%' needs missing `%2%'") -- cgit 1.4.1