diff options
author | Joey Hess <joey@kitenet.net> | 2014-07-27 12:33:46 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-07-27 12:33:46 -0400 |
commit | 300935948503d671ad91b943787d71dc1f6e421e (patch) | |
tree | 9452b227b121f30e7c89fd87cc3756cd34769357 /Backend/URL.hs | |
parent | c7f90efb8626573f2e2927195ce16cb609fac315 (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/URL.hs')
-rw-r--r-- | Backend/URL.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Backend/URL.hs b/Backend/URL.hs index 4233c56bc..2c2988ac0 100644 --- a/Backend/URL.hs +++ b/Backend/URL.hs @@ -25,6 +25,9 @@ backend = Backend , fsckKey = Nothing , canUpgradeKey = Nothing , fastMigrate = Nothing + -- The content of an url can change at any time, so URL keys are + -- not stable. + , isStableKey = const False } {- Every unique url has a corresponding key. -} |