summaryrefslogtreecommitdiff
path: root/Backend/Hash.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-27 12:33:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-27 12:33:46 -0400
commit300935948503d671ad91b943787d71dc1f6e421e (patch)
tree9452b227b121f30e7c89fd87cc3756cd34769357 /Backend/Hash.hs
parentc7f90efb8626573f2e2927195ce16cb609fac315 (diff)
add key stability checking interface
Needed for resuming from chunks. Url keys are considered not stable. I considered treating url keys with a known size as stable, but just don't feel that is enough information.
Diffstat (limited to 'Backend/Hash.hs')
-rw-r--r--Backend/Hash.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Backend/Hash.hs b/Backend/Hash.hs
index 3ff496271..91267ed67 100644
--- a/Backend/Hash.hs
+++ b/Backend/Hash.hs
@@ -45,6 +45,7 @@ genBackend hash = Just Backend
, fsckKey = Just $ checkKeyChecksum hash
, canUpgradeKey = Just needsUpgrade
, fastMigrate = Just trivialMigrate
+ , isStableKey = const True
}
genBackendE :: Hash -> Maybe Backend