summaryrefslogtreecommitdiffhomepage
path: root/keysafe.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-18 16:37:23 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-18 16:37:23 -0400
commit845289fdd8fbbed2cbc7eaf7a3d31efe5a8aa80d (patch)
tree9c0690078b462efc855d7fd42bc0db4e586a6f05 /keysafe.hs
parent4e53adca698bde2430f30a6b1bd10bf7cdd52e1e (diff)
downloadkeysafe-845289fdd8fbbed2cbc7eaf7a3d31efe5a8aa80d.tar.gz
untested moving of upload queues on to servers
There needs to be a 1:1 mapping between upload queues and servers, otherwise using the upload queue risks two shards for the same object being uploaded to the same server. Also, fixed storeShards to give up on StoreAlreadyExists, rather than trying another storage location. Otherwise, on a name collision, the shards would be rejected by the servers, and be stored to their upload queues.
Diffstat (limited to 'keysafe.hs')
-rw-r--r--keysafe.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/keysafe.hs b/keysafe.hs
index c1ed35a..919150b 100644
--- a/keysafe.hs
+++ b/keysafe.hs
@@ -59,6 +59,8 @@ dispatch cmdline ui storagelocations tunables possibletunables = do
=<< Gpg.getKeyToBackup ui
go CmdLine.Restore Nothing =
restore storagelocations ui possibletunables Gpg.anyKey
+ go CmdLine.UploadQueued _ =
+ uploadQueued
go CmdLine.Benchmark _ =
benchmarkTunables tunables