assistant: Be smarter about avoiding unncessary transfers.

Just before starting a transfer, do one last check that it's still
preferred content.

I was just doing this for uploads, as part of the smarter flood filling
bug, but realized it's also possible for a download that was preferred
content to change to not be before the download begins, so check that too.
This commit is contained in:
Joey Hess 2013-03-13 13:36:02 -04:00
parent 60760cb430
commit 02facde154
3 changed files with 35 additions and 12 deletions

1
debian/changelog vendored
View file

@ -48,6 +48,7 @@ git-annex (4.20130228) UNRELEASED; urgency=low
combines all their changes into a single commit.
* assistant: Fix ~/.ssh/git-annex-shell wrapper to work when the
ssh key does not force a command.
* assistant: Be smarter about avoiding unncessary transfers.
* webapp: DTRT when told to create a git repo that already exists.
* webapp: Work around bug in Warp's slowloris attack prevention code,