Pool local store connections

This commit is contained in:
Eelco Dolstra
2016-02-20 00:04:08 +01:00
parent 1cefd6cac8
commit 88a05763cc
6 changed files with 38 additions and 17 deletions

View File

@ -16,6 +16,8 @@
#include "store-api.hh"
#include "derivations.hh"
#include "binary-cache-store.hh" // FIXME
typedef unsigned int BuildID;
@ -346,6 +348,9 @@ private:
std::atomic<time_t> lastDispatcherCheck{0};
/* Pool of local stores. */
nix::StorePool localStorePool;
/* Destination store. */
std::shared_ptr<nix::Store> _destStore;
@ -356,7 +361,7 @@ private:
/* Return a store object that can access derivations produced by
hydra-evaluator. */
nix::ref<nix::Store> getLocalStore();
nix::StorePool::Handle getLocalStore();
/* Return a store object to store build results. */
nix::ref<nix::Store> getDestStore();