about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-04-26T18·28+0200
committerGitHub <noreply@github.com>2017-04-26T18·28+0200
commit39b08f4c0c8851d96daa2b7d4e674b13c75afec7 (patch)
tree6285cec1e9e4541740e7bf78c2df9eb58d6b8f9c /src/libstore
parent45ce2c7413bf8c87aa7d5bc70a5a1c920c40a3b8 (diff)
parent4bc00760f9bc36d5b4e8bba7de9bd71a30d7f31a (diff)
Merge pull request #1358 from shlevy/store-nesting
Add Store nesting to fix import-from-derivation within filterSource
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/remote-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index bc9ef3d47c5e..af59d51106fc 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -414,7 +414,9 @@ Path RemoteStore::addToStore(const string & name, const Path & _srcPath,
     try {
         conn->to.written = 0;
         conn->to.warn = true;
+        connections->incCapacity();
         dumpPath(srcPath, conn->to, filter);
+        connections->decCapacity();
         conn->to.warn = false;
         conn->processStderr();
     } catch (SysError & e) {