-> Annex ()
storeChunks u chunkconfig encryptor k f p storer checker =
case chunkconfig of
+ -- Only stable keys are safe to store chunked,
+ -- because an unstable key can have multiple different
+ -- objects, and mixing up chunks from them would be
+ -- possible without this check.
(UnpaddedChunks chunksize) -> ifM (isStableKey k)
( do
h <- liftIO $ openBinaryFile f ReadMode
(Could continue retrieving, for whatever is stored hopefully w/o being
corrupted already.)
--[[Joey]]
+
+> This would also affect any key that is not stable.
+> And oh, it stopped using chunks to store non-stable keys in 2014.
+>
+> So, this can't really happen with url keys, because they're not stable.
+> Ok, not a bug then, because if the key is stable, there can only be one
+> object for it, by definition. Whew! [[done]] --[[Joey]]