]> dgit.raspbian.org Git - git-annex.git/commit
PUT to cluster send to all nodes rather than none
authorJoey Hess <joeyh@joeyh.name>
Tue, 25 Jun 2024 14:32:34 +0000 (10:32 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 25 Jun 2024 14:32:34 +0000 (10:32 -0400)
commita23b0abf28591e1dab79e2dcfc32c6e591a9f259
treeabf04b9b2c83b7535167039ad6e61975b2b0e5e0
parent202ea3ff2a066ad4960929b3f09b12705f69d1d4
PUT to cluster send to all nodes rather than none

If the location log says all nodes contain content, pass in all nodes,
rather than none.

The location log can be wrong. While it's good to avoid unncessessary
connections to nodes that already contain a key, it would be bad to
refuse to accept an upload at all when the location log is wrong.

Also, passing in no nodes leaves the proxy in an untenable state. It
can't proxy to no nodes. So it closes the connection. Passing in all
nodes means it has to do the work to connect to all of them, and see
that they say they already have the content, and then it can tell the
client that.
Annex/Cluster.hs