diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-01-04 12:33:10 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-01-04 12:33:10 -0400 |
commit | 2963de7dade0a314a5fc626114fe8de364c4ff13 (patch) | |
tree | 4c1d85a771751cd3784a8d38c0d3da2b46a2715c /Types | |
parent | b3eaa4108f0f4e0df8c1642c4c65b6f9ef7f4bce (diff) |
Avoid re-checksumming when migrating from hash to hashE backend. Closes: #774494
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Backend.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Types/Backend.hs b/Types/Backend.hs index 5c5855bc3..117ce8b24 100644 --- a/Types/Backend.hs +++ b/Types/Backend.hs @@ -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 |