Retry transfers to exporttree=yes remotes same as for other remotes
The comment about noRetry is not well-justified, because transfers to many remotes cannot be resumed, but retries are still allowed for those.
This commit is contained in:
parent
1a42b2c5a3
commit
46eb48d7c0
4 changed files with 12 additions and 3 deletions
|
@ -27,6 +27,7 @@ git-annex (8.20200815) UNRELEASED; urgency=medium
|
|||
* Limit retrying of failed transfers when forward progress is being made
|
||||
to 5, to avoid some unusual edge cases where too much retrying could
|
||||
result in far more data transfer than makes sense.
|
||||
* Retry transfers to exporttree=yes remotes same as for other remotes.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Fri, 14 Aug 2020 14:57:45 -0400
|
||||
|
||||
|
|
|
@ -281,9 +281,7 @@ performExport r db ek af contentsha loc allfilledvar = do
|
|||
sent <- tryNonAsync $ case ek of
|
||||
AnnexKey k -> ifM (inAnnex k)
|
||||
( notifyTransfer Upload af $
|
||||
-- Using noRetry here because interrupted
|
||||
-- exports cannot be resumed.
|
||||
upload (uuid r) k af noRetry $ \pm -> do
|
||||
upload (uuid r) k af stdRetry $ \pm -> do
|
||||
let rollback = void $
|
||||
performUnexport r db [ek] loc
|
||||
sendAnnex k rollback $ \f ->
|
||||
|
|
|
@ -4,3 +4,5 @@ If git-annex already does that, please pardon my noise and close this TODO.
|
|||
|
||||
[[!meta author=yoh]]
|
||||
[[!tag projects/datalad]]
|
||||
|
||||
[[fixed|done]] --[[Joey]]
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 2"""
|
||||
date="2020-09-04T17:00:11Z"
|
||||
content="""
|
||||
What about the other side of export, import? Looks to me that does not
|
||||
retry either.
|
||||
"""]]
|
Loading…
Reference in a new issue