better handling of finishing up incomplete incremental verify
authorJoey Hess <joeyh@joeyh.name>
Mon, 16 Aug 2021 18:50:21 +0000 (14:50 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 16 Aug 2021 18:52:59 +0000 (14:52 -0400)
commitc4aba8e0320bcffa31bfcf98a6c1e6244b5bac35
treec480df7a92a4761495d462ea1f1468fbfb8c1ed7
parente0b7f391bd0074e5f776968950d27ba630447d78
better handling of finishing up incomplete incremental verify

Now it's run in VerifyStage.

I thought about keeping the file handle open, and resuming reading where
tailVerify left off. But that risks leaking open file handles, until the
GC closes them, if the deferred verification does not get resumed. Since
that could perhaps happen if there's an exception somewhere, I decided
that was too unsafe.

Instead, re-open the file, seek, and resume.

Sponsored-by: Dartmouth College's DANDI project
Annex/Verify.hs
Backend/Hash.hs
Remote/Helper/Chunked.hs
Remote/Helper/Special.hs
Types/Backend.hs
Types/Remote.hs
Types/StoreRetrieve.hs