]> dgit.raspbian.org Git - git-annex.git/commit
proxy updates location tracking information
authorJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 15:37:14 +0000 (11:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 15:37:14 +0000 (11:37 -0400)
commitdfdda95053b36a204aac475793f4eeb1c29de14e
tree76b49ee02cee51641a5ffb0bad37e48d38230ecb
parent96853cd8332a43e70aac138ef89882d6c44395c0
proxy updates location tracking information

This does mean a redundant write to the git-annex branch. But,
it means that two clients can be using the same proxy, and after
one sends a file to a proxied remote, the other only has to pull from
the proxy to learn about that. It does not need to pull from every
remote behind the proxy (which it couldn't do anyway as git repo
access is not currently proxied).

Anyway, the overhead of this in git-annex branch writes is no worse
than eg, sending a file to a repository where git-annex assistant
is running, which then sends the file on to a remote, and updates
the git-annex branch then. Indeed, when the assistant also drops
the local copy, that results in more writes to the git-annex branch.
Command/P2PStdIO.hs
P2P/Proxy.hs
doc/todo/git-annex_proxies.mdwn