Avoid accumulating transfer failure log files unless the assistant is being used.
Only the assistant uses these, and only the assistant cleans them up, so make only git annex transferkeys write them, There is one behavior change from this. If glacier is being used, and a manual git annex get --from glacier fails because the file isn't available yet, the assistant will no longer later see that failed transfer file and retry the get. Hope no-one depended on that old behavior.
This commit is contained in:
parent
a812d598ef
commit
61ccf95004
9 changed files with 38 additions and 23 deletions
|
@ -95,7 +95,7 @@ toPerform dest move key afile fastcheck isthere =
|
|||
Right False -> do
|
||||
showAction $ "to " ++ Remote.name dest
|
||||
ok <- notifyTransfer Upload afile $
|
||||
upload (Remote.uuid dest) key afile noRetry $
|
||||
upload (Remote.uuid dest) key afile noRetry noObserver $
|
||||
Remote.storeKey dest key afile
|
||||
if ok
|
||||
then do
|
||||
|
@ -152,7 +152,7 @@ fromPerform src move key afile = ifM (inAnnex key)
|
|||
)
|
||||
where
|
||||
go = notifyTransfer Download afile $
|
||||
download (Remote.uuid src) key afile noRetry $ \p -> do
|
||||
download (Remote.uuid src) key afile noRetry noObserver $ \p -> do
|
||||
showAction $ "from " ++ Remote.name src
|
||||
getViaTmp key $ \t -> Remote.retrieveKeyFile src key afile t p
|
||||
dispatch _ False = stop -- failed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue