From eb8a8976a996105abab9cb81b46b8666c6c919c3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 21 Jun 2018 20:54:02 -0400 Subject: [PATCH] comment --- Annex/Content.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Annex/Content.hs b/Annex/Content.hs index 8902114dad..cc0a0b3a6e 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -325,6 +325,13 @@ getViaTmpFromDisk rsp v key action = checkallowed $ do ) , do warning "verification of content failed" + -- The bad content is not retained, because + -- a retry should not try to resume from it + -- since it's apparently corrupted. + -- Also, the bad content could be any data, + -- including perhaps the content of another + -- file than the one that was requested, + -- and so it's best not to keep it on disk. pruneTmpWorkDirBefore tmpfile (liftIO . nukeFile) return False )