From 66679c9bb4b0508dfbb0fcf75e2403b6990cbbff Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Jul 2024 14:36:45 -0400 Subject: [PATCH] remove temp file after upload to special remote --- Annex/Proxy.hs | 1 + doc/todo/git-annex_proxies.mdwn | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Annex/Proxy.hs b/Annex/Proxy.hs index 34bed0f24a..56449518c9 100644 --- a/Annex/Proxy.hs +++ b/Annex/Proxy.hs @@ -179,6 +179,7 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv endv = go _ -> giveup "protocol error" else store _ -> giveup "protocol error" + liftIO $ removeWhenExistsWith removeFile (fromRawFilePath tmpfile) proxyget offset af k = withproxytmpfile k $ \tmpfile -> do -- Don't verify the content from the remote, diff --git a/doc/todo/git-annex_proxies.mdwn b/doc/todo/git-annex_proxies.mdwn index a076813c0a..8b2da98e04 100644 --- a/doc/todo/git-annex_proxies.mdwn +++ b/doc/todo/git-annex_proxies.mdwn @@ -28,6 +28,9 @@ Planned schedule of work: ## work notes +* testremote hangs at PUT to on a cluster accessed over http that + has a node that is a directory special remote. + * When part of a file has been sent to a cluster via the http server, the transfer interrupted, and another node is added to the cluster, and the transfer of the file performed again, there is a failure