summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-03-06 17:12:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-03-06 17:13:27 -0400
commit89baf006cdbda863f283472f5fb0005710abee58 (patch)
tree24193ec75066b984a5297f377c649d5c1284294c /Annex.hs
parent98ceb92bc1644be2acdc2d1a0f60f25310908dde (diff)
Fix zombie leak and general inneficiency when copying files to a local git repo.
Benchmarking this with 1000 small files being copied, the time reduced from 15.98s to 14.64s -- an 8% improvement in the non-data-transfer overhead of git-annex copy.
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Annex.hs b/Annex.hs
index b427efd59..4e3efd0d0 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -88,6 +88,7 @@ data AnnexState = AnnexState
, gitconfig :: GitConfig
, backends :: [BackendA Annex]
, remotes :: [Types.Remote.RemoteA Annex]
+ , remoteannexstate :: M.Map UUID AnnexState
, output :: MessageState
, force :: Bool
, fast :: Bool
@@ -128,6 +129,7 @@ newState c r = AnnexState
, gitconfig = c
, backends = []
, remotes = []
+ , remoteannexstate = M.empty
, output = defaultMessageState
, force = False
, fast = False