From d0c5f6d2f0916e1cfc6ee190521d22e3abd69b0e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 21 Apr 2021 16:02:56 -0400 Subject: [PATCH] optimisation Avoid trying to read private journal files when no private uuids are known. --- Annex/Journal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annex/Journal.hs b/Annex/Journal.hs index 359ebe07a7..9d67d5ba87 100644 --- a/Annex/Journal.hs +++ b/Annex/Journal.hs @@ -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) -- 2.30.2