From 76ccac53916d308aa4806d38bb8cfb6a9d1f9081 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 Dec 2015 17:00:37 -0400 Subject: add inode cache to the db Renamed the db to keys, since it is various info about a Keys. Dropping a key will update its pointer files, as long as their content can be verified to be unmodified. This falls back to checksum verification, but I want it to use an InodeCache of the key, for speed. But, I have not made anything populate that cache yet. --- Locations.hs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Locations.hs') diff --git a/Locations.hs b/Locations.hs index 6082957c7..200297321 100644 --- a/Locations.hs +++ b/Locations.hs @@ -29,8 +29,8 @@ module Locations ( gitAnnexBadDir, gitAnnexBadLocation, gitAnnexUnusedLog, - gitAnnexAssociatedFilesDb, - gitAnnexAssociatedFilesDbLock, + gitAnnexKeysDb, + gitAnnexKeysDbLock, gitAnnexFsckState, gitAnnexFsckDbDir, gitAnnexFsckDbLock, @@ -239,13 +239,13 @@ gitAnnexBadLocation key r = gitAnnexBadDir r keyFile key gitAnnexUnusedLog :: FilePath -> Git.Repo -> FilePath gitAnnexUnusedLog prefix r = gitAnnexDir r (prefix ++ "unused") -{- .git/annex/map/ contains a database for the associated files map -} -gitAnnexAssociatedFilesDb :: Git.Repo -> FilePath -gitAnnexAssociatedFilesDb r = gitAnnexDir r "map" +{- .git/annex/keys/ contains a database of information about keys. -} +gitAnnexKeysDb :: Git.Repo -> FilePath +gitAnnexKeysDb r = gitAnnexDir r "keys" -{- Lock file for the associated files map database. -} -gitAnnexAssociatedFilesDbLock :: Git.Repo -> FilePath -gitAnnexAssociatedFilesDbLock r = gitAnnexAssociatedFilesDb r ++ "lck" +{- Lock file for the keys database. -} +gitAnnexKeysDbLock :: Git.Repo -> FilePath +gitAnnexKeysDbLock r = gitAnnexKeysDb r ++ "lck" {- .git/annex/fsck/uuid/ is used to store information about incremental - fscks. -} -- cgit v1.2.3