git-annex/doc/bugs/git-annex_branch_caching_bug.mdwn

23 lines
835 B
Text
Raw Normal View History

2021-04-21 17:24:32 +00:00
If the journal contains a newer version of a log file than the git-annex
branch, and annex.alwayscommit=false so the branch is not getting updated,
the value from the journal can be ignored when reading that log file.
2021-04-21 17:46:39 +00:00
In CmdLine.Seek, there is some code that precaches location logs as an
optimisation (when using eg --copies). That streams info from the
git-annex branch into the cache. But it never checks for a journal file
with newer information.
2021-04-21 17:24:32 +00:00
2021-04-21 17:46:39 +00:00
> fixed this
2021-04-21 17:24:32 +00:00
Also in Cmdline.Seek, there is a LsTreeRecursive over the branch to handle
`--all`, and I think again that would mean it doesn't notice location
logs that are only in the journal.
Before that optimisation, it was using Logs.Location.loggedKeys,
which does look at the journal.
> fixed
2021-04-21 17:24:32 +00:00
(This is also a blocker for [[todo/hiding_a_repository]].)
[[done]] --[[Joey]]