Clean up direct mode cache and mapping info when dropping keys.
These files were left behind, and made getKeysPresent find keys that were not present. It would be expensive to make getKeysPresent check that the actual key files are present (it just lists the directories). But that's not needed if we just clean up the stale cache and mapping files. To handle systems that were in direct mode and got switched back with stale direct mode files, made cleanObjectLoc remove all files in the key's directory. git annex unused will still list keys that are gone but for which the stale direct mode files exists. To deal with that, made dropunused remove the key's directory even if the key does not seem to be present.
This commit is contained in:
parent
21cfce02ee
commit
57780cb3a4
5 changed files with 18 additions and 10 deletions
|
@ -56,3 +56,6 @@ What version of git-annex are you using? On what operating system?
|
|||
|
||||
git-annex: 3.20130124
|
||||
Debian: sid 2013-02-01
|
||||
|
||||
> unused being confused by stale data left when switching from direct mode.
|
||||
> I've made this be cleaned up. [[done]] --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue