about summary refs log tree commit diff
path: root/src/store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-08T08·35+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-08T08·35+0000
commita5a90f501e471383a8dfccfe8af3c804cefa77cf (patch)
tree1171060204c0089a80aa3d0a43f541c01856a85d /src/store.cc
parentbe96c2189ca017612277ab6301164a5e2facfca5 (diff)
* Get rid of the `netsources' database.
* Rename the `refs' database to `hash2paths'.

Diffstat (limited to '')
-rw-r--r--src/store.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store.cc b/src/store.cc
index 977cd2594f..2ea7586e91 100644
--- a/src/store.cc
+++ b/src/store.cc
@@ -90,7 +90,7 @@ Hash registerPath(const string & _path, Hash hash)
     if (hash == Hash()) hash = hashPath(path);
 
     Strings paths;
-    queryListDB(nixDB, dbRefs, hash, paths); /* non-existence = ok */
+    queryListDB(nixDB, dbHash2Paths, hash, paths); /* non-existence = ok */
 
     for (Strings::iterator it = paths.begin();
          it != paths.end(); it++)
@@ -98,7 +98,7 @@ Hash registerPath(const string & _path, Hash hash)
     
     paths.push_back(path);
     
-    setListDB(nixDB, dbRefs, hash, paths);
+    setListDB(nixDB, dbHash2Paths, hash, paths);
     
  exists:
     return hash;
@@ -116,7 +116,7 @@ static string queryPathByHashPrefix(Hash hash, const string & prefix)
 {
     Strings paths;
 
-    if (!queryListDB(nixDB, dbRefs, hash, paths))
+    if (!queryListDB(nixDB, dbHash2Paths, hash, paths))
         throw Error(format("no paths known with hash `%1%'") % (string) hash);
 
     /* Arbitrarily pick the first one that exists and still hash the
@@ -172,5 +172,5 @@ void deleteFromStore(const string & path)
     if (string(path, 0, prefix.size()) != prefix)
         throw Error(format("path %1% is not in the store") % path);
     deletePath(path);
-//     delDB(nixDB, dbRefs, hash);
+//     delDB(nixDB, dbHash2Paths, hash);
 }