optimisation
Avoid trying to read private journal files when no private uuids are known.
This commit is contained in:
parent
24eeacdba8
commit
d0c5f6d2f0
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ data GetPrivate = GetPrivate Bool
|
|||
-}
|
||||
getJournalFileStale :: GetPrivate -> RawFilePath -> Annex (Maybe L.ByteString)
|
||||
getJournalFileStale (GetPrivate getprivate) file = inRepo $ \g ->
|
||||
if getprivate
|
||||
if getprivate && privateUUIDsKnown
|
||||
then do
|
||||
x <- getfrom (gitAnnexJournalDir g)
|
||||
y <- getfrom (gitAnnexPrivateJournalDir g)
|
||||
|
|
Loading…
Add table
Reference in a new issue