about summary refs log tree commit diff
path: root/src/libstore/misc.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-31T14·02+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-31T14·05+0200
commitbbdf08bc0facb5157a10c794712dae7e5902be03 (patch)
tree562c3e23d2179bc10881567f20fc28979a141ded /src/libstore/misc.cc
parentfd73c1e20a7aaefcb69db3e6b2f081e1a5e20406 (diff)
Call queryMissing() prior to building
Without this, substitute info is fetched sequentially, which is
superslow. In the old UI (e.g. nix-build), we call printMissing(),
which calls queryMissing(), thereby preheating the binary cache
cache. But the new UI doesn't do that.
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r--src/libstore/misc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index 8fa84d3a2787..a82aa4e9cfa5 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -107,6 +107,8 @@ void Store::queryMissing(const PathSet & targets,
     PathSet & willBuild_, PathSet & willSubstitute_, PathSet & unknown_,
     unsigned long long & downloadSize_, unsigned long long & narSize_)
 {
+    Activity act(*logger, lvlDebug, actUnknown, "querying info about missing paths");
+
     downloadSize_ = narSize_ = 0;
 
     ThreadPool pool;