Avoid re-checksumming when migrating from hash to hashE backend. Closes: #774494
This commit is contained in:
parent
e26e26fb32
commit
73928c2274
4 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue