Avoid re-checksumming when migrating from hash to hashE backend. Closes: #774494

This commit is contained in:
Joey Hess 2015-01-04 12:33:10 -04:00
parent e26e26fb32
commit 73928c2274
4 changed files with 15 additions and 6 deletions

View file

@ -21,7 +21,7 @@ data BackendA a = Backend
, canUpgradeKey :: Maybe (Key -> Bool)
-- Checks if there is a fast way to migrate a key to a different
-- backend (ie, without re-hashing).
, fastMigrate :: Maybe (Key -> BackendA a -> Maybe Key)
, fastMigrate :: Maybe (Key -> BackendA a -> AssociatedFile -> Maybe Key)
-- Checks if a key is known (or assumed) to always refer to the
-- same data.
, isStableKey :: Key -> Bool